How to Create Autoscaling Group on Amazon Web Service(AWS).

Amazon EC2 Auto Scaling helps you ensure that you have the correct number of Amazon EC2 instances available to handle the load for your application. You create collections of EC2 instances, called Auto Scaling groups. You can specify the minimum number of instances in each Auto Scaling group, and Amazon EC2 Auto Scaling ensures that your group never goes below this size.


  • Login to aws portal.
  • Click on Services.


Fig 1


  • Under Compute select EC2.


Fig 2


  • Click on Auto Scaling groups.


Fig. 3


  • Click on Create Auto Scaling group.


Fig. 4


  • Provide auto scaling group name.
  • We can create auto scaling group using launch template or configuration.
  • When select launch template.
  • Click on Create a launch template.


Fig. 5


  • Provide launch template name & template version description.


Fig. 6


  • Click on Template tag.
  • We can add tag for template.


Fig. 7


  • Select AMI(Amazon Machine image) for EC2 instance.
  • Select Instance type like t2.small or t3.medium as per the requirement
  • Create or select existing Key Pair.


Fig. 8


  • Select VPC(virtual private cloud).
  • Select existing security group.
  • We can add storage(volume) .


Fig 9


  • We can add resource tags & network interface for launch template.
  • Click on Create launch template.


Fig 10




Fig 11


  • Click on Next.


Fig 12


  • Select existing VPC.
  • Create or select existing Subnet.
  • Then click on Next.


Fig 13


  • We can attach a existing or new load balancer on auto scaling.
  • When we select no load balancer.


Fig 14


  • leave all the settings.
  • Then click on Next.


Fig 15


  • When we select attach a new load balancer.
  • Select load balancer type: application or network load balancer.
  • Provide load balancer name.
  • Select load balancer scheme : internet-facing or internal.


Fig 16


  • Select Availability zone & subnets.


Fig 17


  • Create or select existing target group.
  • Provide key name & value for load balancer.


Fig 18


  • Enable monitoring for logs within cloudwatch.
  • Then click on Next.


Fig 19


  • Provide min or max number of instances required.


Fig 20


  • Click on Next.


Fig 21


  • Add a Notification.
  • Click on Add notification.


Fig 22


  • Click on Create a topic.


Fig 23


  • Provide a topic name & email address of recipients.
  • Click on Next.


Fig 24


  • Click on Add tag.
  • Provide key name & value for auto scaling.
  • Click on Next.


Fig 25


  • Review all the configuration.


Fig 27


  • Click on Create auto scaling group.


Fig 28


  • After sometime auto scaling group is ready.


Fig 29


Create Auto Scaling Group using Shell

1: To create an Auto Scaling group.

aws autoscaling create-auto-scaling-group –auto-scaling-group-name autoscaling-name  –launch-configuration-name launch-config-name –min-size 1  –max-size 2 \ –vpc-zone-identifier “subnet-id1,subnet-id2,subnet-id3”

2: To attach an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.

aws autoscaling create-auto-scaling-group –auto-scaling-group-name autoscaling-name –launch-configuration-name launch-config-name –target-group-arns target0group-arns –health-check-type ELB \ –health-check-grace-period 300 –min-size 1 –max-size 2 –vpc-zone-identifier “subnet-id1,subnet-id2,subnet-id3”



Leave a Reply