AWS Auto Scaling automatically adjusts (adds or removes) your computing resources (like EC2 instances, ECS tasks, etc.) based on demand.
In short:
When your app gets busy → it adds servers.
When your app is idle → it removes extra servers.
So you pay only for what you need, while keeping your app available and fast.
You define a group of EC2 instances
→ This group is called an Auto Scaling Group (ASG).
Example: you launch 2 EC2 instances running your Django web app.
You set minimum, maximum, and desired capacity:
You attach scaling policies (rules):
Example rule:
“If CPU usage > 70% for 5 minutes → add 1 instance”
Another rule:
“If CPU usage < 30% for 10 minutes → remove 1 instance”
CloudWatch monitors your metrics:
Auto Scaling performs actions automatically:
lets drive in to the deeper inside the example how this works
Assumptions: