Skip to content

Illustrate the use of network load balancers (NLBs) and launch templates with EC2 Auto Scaling Groups

License

Notifications You must be signed in to change notification settings

lrakai/aws-autoscaling-and-network-load-balancers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

aws-autoscaling-and-network-load-balancers

Illustrate the use of network load balancers (NLBs) and launch templates with EC2 Auto Scaling Groups

Final Environment

Getting Started

Deploy the CloudFormation infrastructure/cloudformation.yaml template. The template creates a user with the following credentials and minimal required permisisons to complete the Lab:

  • Username: student
  • Password: password

Instructions

  1. In the EC2 Console, create an internet-facing Network Load Balancer
  2. Create a Security Group to allow the required access to your instances behind the load balancer including SSH
  3. Create a launch template for your Auto Scaling group instances
  4. Create an Auto Scaling group based on the launch template
    1. Configure the instances to be added to the load balancer's target group
    2. Configure a simple scaling policy based on CPU utilization
  5. Connect to an instance and run the stress binary to cause CPU utilization to spike
  6. Observe the Auto Scaling group automatically adds more instances and that the instances are added to the target group

Cleaning Up

To remove all the resources used in the Lab Delete the Auto Scaling group, launch template, security group, and Network Load Balancer. Then delete the CloudFormation stack.

About

Illustrate the use of network load balancers (NLBs) and launch templates with EC2 Auto Scaling Groups

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published