Friday, February 12, 2021

AWS - HowTo- How to automate the task of attaching volumes to AWS EC2 instances via AWS Systems Manager

 


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:

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