Auto Scaling is used to manage EC2 instances, whereby a number of instances can be created for our application based on traffic. Auto Scaling helps to keep a group of healthy instances for applications to run. Based on the Auto Scaling configuration, we can add more instances. An Auto Scaling event can be triggered from CloudWatch monitoring, where it measures the metrics configured and if it achieves its threshold limit, it triggers an event to the Auto Scaling group.
Go to AWS EC2 Management Console at https://console.aws.amazon.com/ec2/home.
Create an Auto Scaling group, which will launch scalable instances:
- Click
Launch Configuration
underAuto Scaling
on the left menu. - Click
Create Auto Scaling Group
. - Create the
Auto Scaling Group
:
Figure 3.34: Creating the Auto Scaling group
Click Create launch configuration
.
- Select an AMI:
Figure 3.35: Selecting an AMI for the launch configuration
Here we need to select the AMI for our...