There are three major components that you need to be aware of while working with Auto Scaling. They are:
- Launch configuration: This defines what to scale. This is a collection of attribute values to be used for launching an EC2 instance in the Auto Scaling Group. This is a kind of template to be used while launching EC2 instances. Attributes are AMI, instance type, Security Groups, block device mapping, and key pairs. Launch configuration is pretty much the same as all the configuration settings that need to be defined when launching a new EC2 instance. This configuration instructs Auto Scaling Group what kind of EC2 instances need to be added to the fleet. You can also add userdata to bootstrap the instances to keep the configuration of your application as dynamic as you can.
- Auto Scaling Groups: This is a logical collection of EC2 instances and defines...