Skip to content

Latest commit

 

History

History
 
 

lab-008

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Lab-008

Secure EC2 Auto Scaling + Load Balancing

Difficulty Level: 2

Creation Date: June 15, 2020

Original Author(s): Thyago Mota

Contributor(s): João Marcelo

Goal

This is lab is similar to lab-007 with a caveat: the auto scaling group is configured to create the EC2 instances in the private subnet. Also, two security groups control traffic in and out of the application load balancer and the EC2 instances (in the private subnets). To enable the EC2 instances to respond to requests coming from the internet, NAT gateways were configured on the public subnets of the VPC.

Architecture Diagram

lab-008-arch-01

Step 1 - Create VPC, Subnets, and Internet Gateway

play button

Step 2 - Update Main Route Table and Configure Nat Gateways

play button

Step 3 - Create new Route Tables

play button

Step 4 - Configure Security Groups

play button

Step 5 - Configure Auto Scaling

play button

Step 6 - Configure the Application Load Balancer

play button

Test and Validation

Copy the public address of the load balancer and see if you can access the web server that is running on the EC2 instance that was auto-launched by the auto scaling service.

Challenge

Modify this lab to use only one Nat gateway instead of two. Also, start the auto scaling group with two instances instead of only one.