Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 19, 2022 11:54 pm GMT

Auto-scaling : Setup one for your app in 5 mins

DAY 28 -Auto-scaling : Setup one for your app in 5 mins - Day Twenty Eight

Image tweetImage Cover

100 days of Cloud on GitHub - Read On iCTPro.co.nz - Read on Dev.to

Setup your Load Balancer

Image LB

Check out this blog to see how to setup loadbalancer in 2 mins.

Auto Scaling

Creating Amazon machine image (AMI)

  • Go to EC2 console
  • Select your EC2 , Actions, Image and Templetes , Then click Create Image.
  • Wait till AMi created you can check this on Images area on EC2 ConsoleImage autoscaling

Creating Launch Template

  • On Ec2 Dashboard Select Launch Template and click Create Launch Template.
  • Name it LaunchTemplate-AWS-EC2
  • Name the Launch Template
  • Selected EC2 AMI we have created earlier
  • kept t2.micro as Instance type
  • Selected Key pair
  • Selected your security group.

Creating Auto Scaling Groups

  • On EC2 Dash Board Select Auto Scaling Groups
  • Click on to Create Auto Scaling Groups
  • Name it as Autoscaling-AWS-LAB
  • Select all available Subnets
  • Attach to an existing load balancer
  • Select Choose from your load balancer target groups
    • Select Previously created Target Group
  • Health check grace period - 300
  • Enable Monitoring (optional)
  • Desired capacity 1 ,Minimum capacity 1, Maximum capacity 4.
  • Target tracking scaling policy , Average CPU Utilization - TargetValue 85%
  • Add Notifications - you can add SNS Notifications when ever auto scaling triggers
    • Create new SNS Topic , Add a Name and Email address Click Next
  • Click create auto scaling

Connect with me on Twitter
Connect with me on Linkedin
Read more post on dev.to or iCTPro.co.nz
Connect with me on GitHub

.ltag__user__id__637154 .follow-action-button { background-color: #141D2B !important; color: #9FEF00 !important; border-color: #141D2B !important; }
anuvindhs image

Original Link: https://dev.to/aws-builders/how-to-setup-auto-scaling-for-your-app-in-5-mins-12dn

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To