[AWS] EC2 - Create Auto Scaling group
EC2 Auto Scaling is a service that ensures you have the desired number of EC2 instances always up and running to handle the expected load for your application. To set-up an Auto Scaling group, you require the following basic details:
-
Count of instances - The desired count of the EC2 instances you want to have available. If any instance goes down/fails, a new instance automatically spins up.
-
Launch template - The auto scaling group contains a collection of EC2 instances that are treated as a logical group. All EC2 instances within a group share the same configuration. Therefore, You need to specify the configuration details, such as, the ID of the Amazon Machine Image (AMI), the instance type, a key pair, security groups, and the other parameters that you use to launch EC2 instances. You specify the configuration details in a Launch template.
- Scaling policy - The auto scaling policy that defines how to scale your EC2 instances automatically, based on demand
A. Start the Auto Scaling Groups service
Go to the EC2 Dashboard, and select the Auto Scaling Groups service from the left navigation pane. See the snapshot below. For first time users, it may take you to the homepage. Please devote a moment to read through the introduction.

Snapshot: EC2 Dashboard → Auto Scaling Groups service
B. Create an Auto Scaling group
The Create Auto Scaling group is a seven-step process, as shown in the snapshot below. Provide a launch template or configuration in the first step. AWS prefers launch templates over launch configuration files. (Although, both convey similar information.) If you do not have a pre-created launch template, you can create a launch template from the current step.

Snapshot: Create an Auto Scaling group wizard
In the remaining steps, you can configure group size, scaling policies, notifications settings, and tags. The group size allows you to mention the minimum, maximum, and desired number of instances in the group, such that min <= desired <= max
. For scaling policies, you can create and add either a step/simple/target scaling policy.
- Launch template
As mentioned above, a launch template specifies the configuration details, such as, the ID of the Amazon Machine Image (AMI), the instance type, a key pair, security groups, and the other parameters that you use to launch EC2 instances. See a quick video below to see the information available in a launch template.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
2020-03-16 【思考工具】5W2H法:集齐7个问题,让思维更缜密
2019-03-16 [Functional Programming] Build a Linear congruential generator
2016-03-16 [Javascript] lodash: memoize() to improve the profermence
2016-03-16 [AngularJS] Transforming raw JSON data to meaningful output in AngularJS