Friday, 24 May 2019

How to create Auto Scaling group by using launch configuration by Raj Gupta

Select the launch configuration then click on create Auto Scaling group



On the Configure Auto Scaling group details page, do the following:

  • For Group name, type a name for the Auto Scaling group. For example, my-asg. 
  • For Group size, type the number of instances (for example, 2). Note that we recommend that you maintain approximately the same number of instances in each Availability Zone. 
  • Select your VPC from Network and your two public subnets from Subnet. 
  • Under Advanced Details, select Receive traffic from one or more load balancers. Select your target group from Target Groups. 
  • Choose Next: Configure scaling policies.

On the Configure scaling policies page, choose Review, as we will let Amazon EC2 Auto Scaling maintain the group at the specified size. Note that later on, you can manually scale this Auto Scaling group, configure the group to scale on a schedule, or configure the group to scale based on demand.

On the Review page, choose Create Auto Scaling group

After the group is created, choose Close.



Verify that your instances are ready. From the Auto Scaling Groups page, select your Auto Scaling group, and then choose the Instances tab. Initially, your instances are in the Pending state. When their states are InService, they are ready for use.


5 comments: