You are a solutions architect at an e-commerce firm. The company runs flash sales from time to time, and when there’s a spike in orders, the fulfillment backend struggles to meet demand. In order to provide the extra instances necessary to handle those spikes in both a cost-efficient and sustainable way, you will implement Auto Scaling rules for EC2 based on metrics received from CloudWatch.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create CloudWatch Alarms
Create scale-out and scale-in alarms using the SQS
ApproximateNumberOfMessagesVisible
metric.- Create Simple Scaling Policies
Create scale-out and scale-in policies using the two CloudWatch alarms.
- Observe the Auto Scaling Group’s Behavior in CloudWatch
Use CloudWatch metrics to observe the behavior of the SQS
ApproximateNumberOfMessagesVisible
metric over time.