Create an Image Using a Custom AWS Systems Manager Automation Document
In this lab, you’ll practice the creation and modification of Systems Manager Automation Documents. When you’re finished with this lab, you’ll have a custom automation for creating EC2 AMIs (Amazon Machine Images).
Terms and conditions apply.
Copy AWS-CreateImage Automation Document to a Custom Document
You will use the AWS Console to create a custom Systems Manager Automation document. This will be a copy of the AWS-CreateImage document, and will create an AMI from EC2 instances. You will save the source locally to edit in subsequent challenges.
Create an AMI Using a Custom Automation Document
You will use the custom Automation document that you created in the previous challenge to create an AMI of an EC2 instance.
Modify the Custom Document to Determine Tag Values of the EC2 Instance
You will edit the custom document to get the value of the Name and Environment tags of the EC2 instance. This will execute DescribeTags through the AWS API.
View Automation Execution Outputs
You will execute the Automation document you have modified, and will view the two additional output values you have added to the document.
Change the Name of the AMI That Is Created by a Custom Automation Document
You will edit your CustomCreateImage document, and revise the name of the AMI that is created by the Automation document.
Add EC2 Instance Tags to the AMI Created by a Custom Automation Document
You will modify your custom Automation document to propagate the tags from the EC2 instance onto the newly created AMI.
Verify Modifications to Custom Automation Document
You will execute the final version of your automation document, and view the AMI that is created to verify that the AMI name is correct, and that the correct tags have been added.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.