Day-25: Auto Scaling Groups (ASG)


🔹 What is Auto Scaling?

Auto Scaling automatically adjusts the number of EC2 instances in your application based on demand, ensuring:

It helps you add instances when traffic increases and remove instances when traffic decreases.


🔹 Key Components

  1. Launch Template / Launch Configuration – Defines the instance type, AMI, key pair, security groups, etc.
  2. Auto Scaling Group (ASG) – A collection of EC2 instances managed together.
  3. Scaling Policies – Rules to decide when to scale in/out.
  4. CloudWatch Alarms – Used to trigger scaling actions based on metrics like CPU utilization or network load.

🔹 How It Works

  1. You define minimummaximum, and desired number of EC2 instances.
  2. Based on CloudWatch metrics or schedules, AWS automatically:

🔹 Types of Scaling