Launching Auto Scaling Groups behind a Classic Load Balancer

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Creating a Classic Load Balancer
lock
Creating a Launch Template
lock
Creating an Auto Scaling Group Associated with a Classic Load Balancer
lock
Creating a Scaling Policy
lock
Making the Application Scale

The hands-on lab is part of these learning paths

Solutions Architect – Professional Certification Preparation for AWS
course-steps
48
certification
7
lab-steps
19
quiz-steps
4
description
2
SysOps Administrator – Associate Certification Preparation for AWS
course-steps
32
certification
5
lab-steps
30
quiz-steps
4
description
5

Ready for the real environment experience?

DifficultyIntermediate
Time Limit1h 45m
Students4163
Ratings
4.8/5
starstarstarstarstar-half

Description

Auto Scaling helps you maintain application availability and allows you to scale your Amazon EC2 capacity up or down automatically according to the defined conditions. You can use Auto Scaling to help ensure that you are running your desired number of Amazon EC2 instances. Auto Scaling can also automatically increase the number of Amazon EC2 instances during demand spikes to maintain performance and decrease capacity during lulls to reduce costs. Auto Scaling is well suited to applications that have stable demand patterns, or that experience hourly, daily, or weekly variability in usage.

Elastic Load Balancing (ELB) allows the distribution of incoming traffic to your Amazon AWS infrastructure across multiple instances. This represents a great tool in avoiding failures in your applications and web traffic. ELB automatically detects failures in your EC2 instances and redirects traffic to other available instances. 

In this lab, you will create a Classic Load Balancer to load balance the traffic to the instances that will be launched in the Auto Scaling group that we will also create. To make sure that our application scales, you will configure a Scaling Policy to scale the infrastructure up and down based on the usage.

Learning Objectives

By the end of this Lab, you should be able to:

  • Associate Auto Scaling groups with Classic Load Balancers
  • Understand how ELB's health checks affect ASGs
  • Configure Scaling Policies

Prerequisites

This is an intermediate level Lab, in order to follow the next steps you should be able to:

  • Describe and launch EC2 instances
  • Understand and use user data scripts
  • Describe, create, and configure Security Groups
  • Describe and launch Classic Load Balancers
  • Describe and launch an Auto Scaling group
  • Basic Understanding of the CloudWatch service

If you don't have this knowledge, please refer to these Labs first:

Updates 

August 31st, 2020 - Updated screenshots for the new EC2 user interface

August 10th, 2020 - Updated all instructions and screenshots

June 27th, 2019 - Added a custom validation lab step to check the work performed in the lab

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW
About the Author
Students15740
Labs27
Courses1

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes. He holds the AWS Certified Developer - Associate certification.