AWS Classroomnotes 12/Jul/2023

AWS Auto Scaling

  • AWS Autoscaling group scales ec2 instances based on some resources such as
    • CPU
    • RAM
    • I/O
    • Network
  • To inform the CPU or other resource information AWS uses Cloud watch
  • Lets examine cloud watch for ec2 instance
    Preview
    Preview
  • In cloud watch alarm represents the condition met

Launch Template in AWS EC2

  • Refer Here for launch template
  • Create a launch template with phpinfo ami and donot include key pair

Autoscaling group (ASG)

  • Autoscaling group is where we define
    • minimum number of instances
    • maximum number of instances
    • scaling rules
    • we use exising launch template
  • In ASG, they have desired count
  • ASG’s are used in two cases
    • Always to maintain same count
    • Elastic i.e. scaling up or down based on rules
  • lets maintain same count using ASG
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
  • Navigate to ec2 instances
  • Now play with ec2 instances by termination and eventually delete auto scaling 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