Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
26 views20 pages

Autoscaling - Aws

This document discusses how to create an autoscaling group in AWS EC2. It provides step-by-step instructions for setting up a launch template, instance, load balancer, and autoscaling group. The autoscaling group is configured to dynamically scale the number of EC2 instances based on CPU usage to ensure adequate capacity.

Uploaded by

5016 V.Gayathri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views20 pages

Autoscaling - Aws

This document discusses how to create an autoscaling group in AWS EC2. It provides step-by-step instructions for setting up a launch template, instance, load balancer, and autoscaling group. The autoscaling group is configured to dynamically scale the number of EC2 instances based on CPU usage to ensure adequate capacity.

Uploaded by

5016 V.Gayathri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

AWS AUTOSCALING

AWS Auto Scaling enables you to quickly scale your entire application on AWS

SUBMITTED BY,
V.GAYATHRI, B,TECH IT, FINAL YEAR…
DATE:22.02,2024, THURSDAY

Autoscaling definition: The dynamic scaling capabilities of Amazon


EC2 Auto Scaling refers to the functionality that automatically increases or
decreases capacity based on load or other metrics.

For example, if your CPU spikes above 80% (and you have an alarm setup)
Amazon EC2 Auto Scaling can add a new instance dynamically.

CREATING AUTOSCALING GROUP IN AWS EC2 STEPS:

STEP 1: In first open the EC2 dashboard then click the launch
templates under instances.

1
STEP 2: Give launch template name then version description as
any numeric and also select the Amazon linux OS.

STEP 3: Select Amazon Linux 2 AMI version and give t2.micro


instance type and click create new key pair.

2
STEP 4: Give key pair name, define key pair type, then give .ppk
format and create key pair.

STEP 5: Now under network security you see security group give
select existing group if already have otherwise create security
group. Give name, description. In inbound rules specify ALL
TCP and put 0.0.0.0/0 as CIDR range.

3
STEP 6: Under advanced settings give the html deployment code
as in picture and click create launch template.

Launch template is successfully created.

Now view the template created.

4
STEP 7: Go to actions and click launch instance from template.

STEP 8: Give template name and select Amazon linux 2 version.

5
STEP 9: Give t2.micro as instance type and keypair is
automatically taken also security group.

Check the security group taken by it.

6
STEP 11: Check the user data.

STEP 12: Now click the launch instance.

7
STEP 13: Launch template is successfully created.

Give name for the instance and click load balancers.

8
Give name for load balancer and click create load balancer.

STEP 14: View the created load balancer and connect with
instance we created.

9
STEP 15: Click create auto scaling group.

STEP 16: Give name for autoscaling group and select the created
template and give next.

10
STEP 17: Select all zones in that region and click next.

STEP 18: Select attach to an existing load balancer and click


choose from classic load balancers and give next.

11
STEP 19: Fill the desired capacity and give scaling limits and give
next.

STEP 20: You can add notification and tags if needed and give
next.

12
STEP 21: Check the review all details were correct.

13
STEP 22: Click the create auto scaling group.

Now auto scaling group is successfully created.

14
STEP 23: Now go to the instance dashboard, you can see more
server due to auto scaling. Select first server and copy the public
address and open in a new tab browser.

15
Now select second server and copy the public address and open in
new tab.

16
STEP 24: You can connect the server, click connect.

STEP 25: Again click the connect to the browser.

17
The server have connected to the browser.

STEP 26: Give sudo su - command to change from ec2 user to


root user.

18
STEP 27: Give yum update –y command to update and install the
packages.

19

You might also like