Followers

AWS - Autoscaling and Launch Configuration

AWS Auto Scaling monitors your applications and automatically adjusts capacity to maintain steady, predictable performance at the lowest pos...

AWS Auto Scaling monitors your applications and automatically adjusts capacity to maintain steady, predictable performance at the lowest possible cost. Using AWS Auto Scaling, it's easy to setup application scaling for multiple resources across multiple services in minutes.

To Create Launch Configuration

Step 1: Create an EC2 instance Amazon Linux Image and Install apache (httpd)  and an index.html with some content.

Step 2: Create an AMI of the above EC2 instance. for example I am creating an apacheimg

Step 3: Autoscaling--> Launch Configuration

Step 4: Define properties of Launch Configuration

  •       Name: LC1
  •       AMI: apacheimg
  •       Instance Type: t2.micro
  •       Security Group: New Security Group and Add the HTTP Rule
  •       Key Pair : Select Existing key pair

Click on Create Launch Configuration button

To Create Autoscaling group with Launch Configuration

Step 1 : Select Auto Scaling ---> Auto Scaling Group

Step 2: Click on Create Auto Scaling Group button

Step 3: Define the Auto Scaling Group properties

  •           Name:  ASG1
  •           Click on Swicth To Launch Configuration.
  •           Select Launch Configuration: LC1
  •           Click on Next Button
  •            VPC : default
  •           AZs : I am selecting all.
  •           Click on Next button
  •           LoadBalancing: No LoadBalancer
  •           Click on Next 
  •           Desire Capcity: 2
  •           Min: 1
  •            Max: 3
  •          Select option Target Tracking Policy
  •          Metric Type Average Cpu Utilization: 50
  •          Click on Next
  •          Add Notification : Not Change
  •          Add Tags : No change
  •         Review and Click on Create Auto scaling group button

Step 4: Check in EC2 instances that 2 instances must be in the running state because we have defined Desire state=2.

Step 5: Once you finish this lab then you can delete the AutoScaling Group and you will observe that EC2 instances related to ASG is also deleted .


Experiments: Before Deletion

1. Check all the Ec2 instances are running with the same SG as you defined during Launch Configuration.

2. Access the default page of each EC2 instance and it should give the same output.

3. Try to delete Launch Configuration which in use.











COMMENTS

Name

Ansible,6,AWS,1,Azure DevOps,1,Containerization with docker,2,DevOps,2,Docker Quiz,1,Docker Swarm,1,DockerCompose,1,ELK,2,git,2,Jira,1,Kubernetes,1,Kubernetes Quiz,5,SAST DAST Security Testing,1,SDLC Quiz,3,SonarQube,3,Splunk,2,vagrant kubernetes,1,YAML Basics,1,
ltr
item
DevOpsWorld: AWS - Autoscaling and Launch Configuration
AWS - Autoscaling and Launch Configuration
DevOpsWorld
https://www.devopsworld.co.in/2022/03/aws-autoscaling-and-launch-configuration.html
https://www.devopsworld.co.in/
https://www.devopsworld.co.in/
https://www.devopsworld.co.in/2022/03/aws-autoscaling-and-launch-configuration.html
true
5997357714110665304
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content