Creating Auto Scaling group using Ec2

You will need the following to complete this lab.
- An AWS account
- AWS Management Console
The first objective I will complete is the creation of a VPC. Choose VPC w/Subnets,etc. and give the VPC a name and CIDR address. I will be using 10.10.0.0/16 as my starting point for IP Addressing.

Preview the resources that will created below.


Launch Configuration:
Go to EC2 console and click on Launch Configuration from Auto Scaling group. Name the launch configuration and give it a description. Check the box below to have guidance with creating Auto Scaling.

Choose AMI, select the Amazon Machine Image from AMI catalog tab, which is used to create the image for your web application. Then, select the instances type which is suitable for your web application and click Next: Configure details.

Next, under network I will create the security groups Inbound/ Outbound rules

Next, the bootstrap script that runs just once to startup Apache Web Server.


Here I have configured the settings for the minimum and maximum size for the Auto Scaling group.

Scaling Policies

Now we will view the scaling group in the AWS console.



As you can see below CloudWatch has been created to monitor the cpu activity on the Auto Scaling group that is now up and running.


The Auto Scaling project has been a success; as evidenced by all of the infrastructure that has been created and the CloudWatch tracking of the Auto Scaling groups metrics.