There are several ways to get started with Amazon EC2 Auto Scaling. This page provides resources that can help you manage and scale your EC2 fleets quickly and easily.
-
AWS Management Console
Step 1: Sign into the AWS Management Console
Create an account and sign into the console. With Amazon EC2, you pay only for what you use. If you are a new AWS customer, you can get started with Amazon EC2 for free. For more information, see AWS Free Tier.
Step 2: Create a launch template
In the Amazon EC2 Dashboard, choose "Launch Templates" to create a launch template, specifying a name, AMI, instance type, and other details. Below are some guidelines on setting up your first launch template.
- Choose an Amazon Machine Image (AMI): We recommend the Amazon Linux 2 AMI (free-tier eligible).
- Choose an instance type: We recommend the t2.micro (free-tier eligible).
- Security group: You have the option to configure your virtual firewall.
Step 3: Create an Auto Scaling group
Using the Auto Scaling wizard, create an Auto Scaling group specifying a name, size, and network for your Auto Scaling group.
Step 4: Add Elastic Load Balancers (Optional)
When you set up Auto Scaling with Elastic Load Balancing, you can automatically distribute incoming application traffic across Amazon EC2 instances within your Auto Scaling groups to build highly available, fault-tolerant applications.
Associate your load balancer with your Auto Scaling group to distribute traffic for your application across a fleet of EC2 instances that can scale with demand.
You must first create a load balancer.
Step 5: Configure Scaling Policies (Optional)
Configure scaling policies for your Amazon EC2 Auto Scaling group.
-
AWS Command Line Tools (CLI)
You can access the features of Amazon EC2 Auto Scaling using the AWS CLI, which provides commands for a broad set of AWS products, including Amazon EC2 and Amazon CloudWatch. For more information about the commands for Amazon EC2 Auto Scaling, see the Amazon EC2 Auto Scaling section of the AWS Command Line Interface Reference.
-
AWS Software Development Kits (SDKs)
Get started with Amazon Auto Scaling by using APIs tailored to your programming language or platform, or AWS Mobile SDK to help you build high-quality mobile apps quickly and easily. See Tools for Amazon Web Services for more information.
Tutorials
Get hands-on with Amazon EC2 Auto Scaling using these quick, self-guided tutorials. For more simple “Hello, World!” tutorials, browse AWS 10-minute Tutorials.
Getting Started with EC2 Auto Scaling
Create a template that defines your EC2 instances and create an EC2 Auto Scaling group to maintain the healthy number of instances at all times
Set Up a Scaled and Load-Balanced Application
Attach a load balancer to your Amazon EC2 Auto Scaling group to automatically distribute incoming traffic across EC2 instances
Create an EC2 Auto Scaling group with Elastic Load Balancing
Learn how you can automatically distribute your traffic using a load balancer across your EC2 Auto Scaling group.
Find more 10 minute turorials.
Additional resources
Discover more Amazon EC2 Auto Scaling resources