In this blog post, let us see how to automate the task of attaching volumes to an AWS EC2 instance using AWS Systems Manager's -> "Automation Document" option
Pre-requisite:
- An active AWS account
- Permissions to use & access EBS Volumes, AWS Systems Manager from AWS Management Console
- Please refer to the earlier post of creating EBS volume in this link here https://cloudgoddess.blogspot.com/2021/01/aws-howto-how-to-create-ebs-volume-as.html
Steps:
- Login & Navigate to the AWS Systems Manager Console
- Click on the "Automation" -> "Execute Automation" option under "Change Management" Menu in the left sidebar
- Now fill in the Origin & Destination objects, Volumes(Volume id) & Instance Id(to which the volume has to be attached) respectively and click on "Execute"
- Watch the automation task being executed via AWS Cloudformation stack
- Now visualize the volumes(that was created earlier) is now attached to the targeted EC2 successfully
Note:
- As how the EBS Volumes can be created manually, the same can be attached to an AWS EC2 instance manually or programmatically as well. But this blog post, will explain how to attach the EBS automatically
No comments:
Post a Comment