0% found this document useful (0 votes)
21 views3 pages

Auto Scaling LAB

This document provides steps to create a VPC, subnet, internet gateway, routing table, security group, and EC2 instance in AWS. It then describes how to configure auto scaling using a launch configuration and auto scaling group to allow scaling of the number of EC2 instances based on CPU utilization.

Uploaded by

gkswami5891
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)
21 views3 pages

Auto Scaling LAB

This document provides steps to create a VPC, subnet, internet gateway, routing table, security group, and EC2 instance in AWS. It then describes how to configure auto scaling using a launch configuration and auto scaling group to allow scaling of the number of EC2 instances based on CPU utilization.

Uploaded by

gkswami5891
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/ 3

StorageTech

Auto Scaling – LAB

VPC Creation

1. Login to AWS console and click on your VPC. Click on create VPC
2. Provide name of VPC “ My VPC1” and provide CIDR block 10.0.0.0/16
3. Use Default tenancy as default will be paid and click on create VPC.

Subnet Creation

1. Navigate to create Subnet and give name “Subnet 1”.


2. Provide VPC Information/ Select VPC from drop down “MY VPC1”
3. Select Availability Zone 1
4. Provide Name of Subnet and CIDR Block 10.0.0.0/24

Create Internet Gateway

1. Click on Internet Gateway and then click on “Create Internet Gateway”


2. Provide Name “IGW1” and click on create.
3. Attach IGW1 with “My VPC1”

Create Routing Table

1. Navigate to Route table and click on “ Create route table “


2. Provide Route table name “My Route Table” and select VPC “ My VPC1”
3. Associate this routing table with Subnet 1 by clicking on “Edit Subnet association”
4. Select Subnet1 and click on apply.
5. Click on Edit Route and add route. Add 0.0.0.0/0 (all internet traffic)
6. Click on destination Select “Internet Gateway” and Select “IGW1” – Save changes

Create Security Group

1. Navigate to Security group and click on create Security Group


2. Provide Security name “ My Security” and select the VPC “My VPC1”
3. Add Inbound traffic rule and allow RDP.
 Type RDP, Destination IPv4 Anywhere
4. Create Security Group

StorageTech Noida, Second Floor, ICICI Bank Sector 12 Noida -201301 Www.StorageTech.org
StorageTech
Create One EC2 in Subnet-1

1. Navigate to EC2 and Click on “Instances” -> Launch Instances


2. Provide Server Name “Server1” and select Windows Server Image.
3. Create “Keypair” and download. Click on Network Setting and Edit
4. Select “My VPC” , “Subnet1” and select “ Auto assign Public IP” – Enable
5. Select Security Group “My Security” and Click on Launch Instance

Auto Scaling Configuration

There will be two steps to configure Auto scaling

 Launch Configuration
 Create Auto Scaling Group

Launch Configuration

Launch configuration is the step to provide first machine that will be added to the ASG and same
configuration will be replicated to all newly added machines while up-scaling

We have two way to configure it 1) Direct by launch Configuration ( Just like Template
configuration) 2) By AMI image

AMI Method

1. Go To instances that we created in first steps.


2. Select the image and go to action -> Create Image – Image will be created after Sometime
3. Check Image in AMI tab. It should be visible- Status will be “Available”
4. Navigate to Auto Scaling Group and click on “ Launch Configuration”
5. Click on Create Launch Configuration. Provide LC name
6. Select the Image from AMI.
7. Choose Instance type t2 –Micro and provide all other information.

Auto Scaling Group

1. Click on Auto scaling group.


2. Provide Auto scaling group name ASG1
3. Click on Switch to Launch Configuration and Select AMI
4. Select VPC and Availability Zone
5. Select “No Load Balancer Option”
6. Select Health Check option ( EC2/ELB or both). Here EC2 only

StorageTech Noida, Second Floor, ICICI Bank Sector 12 Noida -201301 Www.StorageTech.org
StorageTech
7. Choose Desired Capacity 1, Minimum-1 and Maximum -4
8. Choose Scaling policy “Matric type Cpu utilization, Target Value 30
9. Finish it up by provide general details.
10. Please ensure before trigerring finished Subnet1” and select “ Auto assign Public IP” – Enable
11. Go to EC2 Instance and see machine with Desired capacity will be getting created.
12.

StorageTech Noida, Second Floor, ICICI Bank Sector 12 Noida -201301 Www.StorageTech.org

You might also like