AWS EC2 Auto Scaling

AWS Tutorial: Amazon EC2 Auto Scaling

Welcome to the Amazon EC2 Auto Scaling lesson. Building on our knowledge of Horizontal Scaling, AWS provides a service that performs this scaling automatically!

Amazon EC2 Auto Scaling

Why Learn Auto Scaling?

Manual scaling is slow and error-prone. By learning EC2 Auto Scaling, you can automate your infrastructure so that it dynamically grows during traffic peaks and shrinks during quiet periods, maximizing performance and minimizing costs.

Tutorial Overview

In this tutorial, you will learn:


What is Amazon EC2 Auto Scaling?

Amazon EC2 Auto Scaling helps you maintain application availability and allows you to automatically add or remove EC2 instances according to conditions you define. You can use the fleet management features to maintain the health and availability of your fleet.

Auto Scaling Groups (ASG)

An Auto Scaling Group is a logical collection of EC2 instances. Within an ASG, you define rules:

Dynamic Scaling Policies

You can set up CloudWatch alarms to trigger a scaling event. For example:

This ensures your application is always perfectly sized for the current demand!


Exercise

?

In an Auto Scaling Group, what setting dictates the upper limit of instances to prevent runaway costs?