Practicing Auto Scaling Groups (ASG) in AWS

In this session, we walk through the process of creating and managing an Auto Scaling Group (ASG) in AWS. This includes setting up a Launch Template, configuring instance scaling, and integrating with an Application Load Balancer (ALB) for automated instance management.


1. Preparing for ASG Setup

Terminate Existing EC2 Instances

Before starting, ensure that all running EC2 instances are terminated, so we begin with zero active instances.


2. Creating an Auto Scaling Group

Navigate to Auto Scaling Groups in the AWS Management Console and click Create Auto Scaling Group.

Naming and Launch Template

Creating a Launch Template

  1. Name: MyDemoTemplate
  2. Amazon Machine Image (AMI):
  3. Instance Type:
  4. Key Pair:
  5. Storage:
  6. Security Group:
  7. User Data Script: