July Release Confetti
150+ New Courses, Hands‑On Labs, And
Interactive Learning Activities
Learn More

AWS Lab

Pre-Baking AMIs for Auto Scaling

We deploy the real environment, you take the scenario-based labs on us. Hands-on, from anywhere, at any time.

Time required: 2 Hours

Overview

For the scenario for this lab we are tasked with implementing a cost effective and self-healing architecture for a CPU-intensive application. We need to be able to add or subtract an instance based on CPU usage. You also want to be able to spin up new instances as quickly as possible. So, how are we going to go about this? 

First we are  going to pre-bake an AMI.  We will install software on an EC2 instance, create an AMI out of it, and use that AMI to launch into our launch config, which will save time when spinning up instances and check off the “quickly as possible” criteria.

Once we have done that we will create a launch configuration based off our custom AMI and create an auto scaling group.

Finally, we will create an Auto Scaling group policy with a CloudWatch alarm to scale in and scale out, keeping this application cost-effective by eliminating unnecessary resources.

 

 

Share our Labs
Start Your Free Trial

We have the longest and most in depth courses about cloud and engineering topics on the web. All of our training content is included with every membership.