EC2 Auto Scaling

Hands-On

Demo

  1. Create a Launch Template
  2. Set up an Auto Scaling group
  3. Configure scaling policies
  4. Test the Auto Scaling setup
  5. Clean up resources

Agenda

Create launch template

MyAutoScalingTemplate

Create launch template

Application and OS Images (Amazon Machine Image)

auto-scaling-key-pair

Create key pair

Key pair (login)

Network settings

Auto-Scaling-Security-Group
Allows SSH access to developers

Success

Create Auto Scaling group

MyFirstASG

Network

Configure advanced options

Health checks

30

Configure group size and scaling

1
1
2

Scaling

50

Add notifications

Add tags

Review

Review

Review

Review

Review

MyFirstASG

Connect to EC2 instance

sudo yum install stress -y
stress --cpu 8 --timeout 900

Check Activity in ASG

Check Instances in EC2 Dashboard

Stop The Stress - CTRL+C

Edit MyFirstASG For Faster Termination

Advanced configurations

EC2 Instance Terminated

Check EC2 Instances

Clean Up

Delete Auto Scaling group

Delete Launch Template 

EC2 Terminated Automatically

Delete Key pair

Delete security group 

🙏

Thanks

for

Watching

EC2 Auto Scaling - Hands-On Demo

By Deepak Dubey

EC2 Auto Scaling - Hands-On Demo

EC2 Auto Scaling - Hands-On Demo

  • 19