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.
Lab info
Lab author
Challenge
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.
Challenge
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.
Challenge
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.
Challenge
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.
Challenge
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.
Challenge
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.
Challenge
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.
Guided walkthrough
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.
Recommended prerequisites
- YAML