AWS Classroomnotes 24/Sep/2022

AWS Autoscaling Group (ASG)

  • AWS Autoscaling Group allows us to launch multiple ec2 instances and maintain the count
  • ASG has two kinds of scaling
    • Fixed Number
    • Elasticity
  • Lets create an ec2 autoscaling group with fixed number of ec2 instances.

Scenario:

  • create an ec2 autoscaling group with fixed number of ec2 instances with php info application.
  • Steps:
    • Ensure we have an ami with php info and stress tool installed. Refer Here
    • Create a Launch Template with php info ami
      Preview
    • Create auto scaling group
      Preview
      Preview
      Preview
      Preview
      Preview
      Preview
      Preview
      Preview
      Preview
      Preview
      Preview
    • Right now two ec2 instances are running lets terminate one ec2 instance and see what happens
      Preview
      Preview
    • Once you are done either delete the autoscaling group or update the desired capacity to zero.
      Preview
  • Exercise: Create Autoscaling group with fixed scaling with php info ami.
    • Create AMI
    • Create Launch Template (AMI is mandatory)
    • Create Autoscaling group

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner