Amazon EC2 Auto Scaling
User Guide

Creating an Auto Scaling Group Using a Launch Template

When you create an Auto Scaling group, you must specify the necessary information to configure the Amazon EC2 instances, the subnets for the instances, and the initial number of instances.

To configure Amazon EC2 instances, you can specify a launch configuration, a launch template, or an EC2 instance. The following procedure demonstrates how to create an Auto Scaling group using a launch template.

With launch templates, you choose the launch template and which specific version of the launch template the group uses to launch EC2 instances. You can change these selections anytime by updating the group. Alternatively, you can configure the Auto Scaling group to choose either the default version or the latest version of the launch template dynamically when a scale-out event occurs. For example, you configure your Auto Scaling group to choose the default version of a launch template dynamically. To change the configuration of the EC2 instances to be launched by the group, create or designate a new default version of the launch template.


To create an Auto Scaling group using a launch template (console)

  1. Open the Amazon EC2 console at

  2. On the navigation bar at the top of the screen, choose the same AWS Region that you used when you created the launch template.

  3. In the navigation pane, choose Auto Scaling Groups.

  4. Choose Create Auto Scaling group.

  5. Choose Launch Template, choose your launch template, and then choose Next Step.

  6. On the Configure Auto Scaling group details page, for Group name, enter a name for your Auto Scaling group.

  7. For Launch template version, choose whether the Auto Scaling group uses the default, the latest, or a specific version of the launch template when scaling out.

  8. For Fleet Composition, choose Adhere to the launch template to use the EC2 instance type and purchase option specified in the launch template.


    Alternatively, to launch instances across multiple instance types using both On-Demand and Spot purchase options, choose Combine purchase options and instances. For more information, see Auto Scaling Groups with Multiple Instance Types and Purchase Options.

  9. For Group size, enter the initial number of instances for your Auto Scaling group.

  10. For Network, choose a VPC for your Auto Scaling group.

  11. For Subnet, choose one or more subnets in the specified VPC. Use subnets in multiple Availability Zones for high availability. For more information about high availability with Amazon EC2 Auto Scaling, see Distributing Instances Across Availability Zones.

  12. (Optional) To register your Amazon EC2 instances with a load balancer, choose Advanced Details, choose Receive traffic from one or more load balancers, and choose one or more Classic Load Balancers or target groups.

  13. Choose Next: Configure scaling policies.

  14. On the Configure scaling policies page, choose one of the following options, and then choose Next: Configure Notifications:

    • To manually adjust the size of the Auto Scaling group as needed, choose Keep this group at its initial size. For more information, see Manual Scaling for Amazon EC2 Auto Scaling.

    • To automatically adjust the size of the Auto Scaling group based on criteria that you specify, choose Use scaling policies to adjust the capacity of this group and follow the directions. For more information, see Configure Scaling Policies.

  15. (Optional) To receive notifications, choose Add notification, configure the notification, and then choose Next: Configure Tags.

  16. (Optional) To add tags, choose Edit tags, provide a tag key and value for each tag, and then choose Review.

    Alternatively, you can add tags later on. For more information, see Tagging Auto Scaling Groups and Instances.

  17. On the Review page, choose Create Auto Scaling group.

  18. On the Auto Scaling group creation status page, choose Close.

To create an Auto Scaling group using the command line

You can use one of the following commands: