Let's understand basic infrastructure scaling:
- Scale out: Achieving scalability by increasing the number of EC2 instances
- Scale up: Achieving scalability by resizing the capacity (compute, memory, and EBS) of existing EC2 instances
- Scale down: Decreasing the number of EC2 instances of the configuration for existing EC2
Auto Scaling takes care of scale out and scale down. Auto Scaling components are managed into groups so that they can be treated as separate logical units for management and scaling purposes. Auto Scaling Groups use launch configuration as a template to create EC2 instances
$ aws autoscaling create-launch-configuration --launch-configuration-name my-test-launch --key-name my-key-pair --image-id ami-c1wjdlakf6 ...