All Products
Search
Document Center

Auto Scaling:Apply a launch template in a scaling group

Last Updated:Oct 18, 2024

If you use a scaling group of the Elastic Compute Service (ECS) type, you can specify a launch template as the instance configuration source. During scale-out events, Auto Scaling automatically creates ECS instances based on the launch template in the scaling group. This topic describes how to manage launch templates.

Specify a launch template as the instance configuration source

You can specify a launch template as the instance configuration source in a scaling group. In this case, Auto Scaling automatically creates ECS instances based on the launch template during scale-out events.

Important

You can specify only one launch template in a scaling group.

Prerequisites

  • A launch template is created. For more information, see Create a launch template.

  • No launch template is specified for the scaling group.

Procedure

Specify a launch template for an existing scaling group

  1. Go to the Launch Templates tab.

    1. Log on to the Auto Scaling console.

    2. In the left-side navigation pane, click Scaling Groups.

    3. In the top navigation bar, select the region where Auto Scaling is activated.

    4. On the Scaling Groups page, find the scaling group whose launch template that you want to manage and click Details in the Actions column. On the details page of the scaling group, click the Instance Configuration Sources tab and then the Launch Templates tab.

  2. Click Edit Configuration Source.

  3. In the Edit Launch Template dialog box, select an existing launch template.

    Important

    You can enable the Extend Launch Template feature to specify multiple instance types at the same time. For more information, see Create a multi-instance type scaling group by using a launch template.

Use a launch template to create a scaling group

You can create a scaling group by using a launch template. For more information, see Method 1: Create a scaling group by using a launch template.

View the launch template of a scaling group

You can view information such as the instance type, billing method, and image of an effective launch template. To view a launch template, perform the following steps:

  1. Go to the Launch Templates tab.

    1. Log on to the Auto Scaling console.

    2. In the left-side navigation pane, click Scaling Groups.

    3. In the top navigation bar, select the region where Auto Scaling is activated.

    4. On the Scaling Groups page, find the scaling group whose launch template that you want to manage and click Details in the Actions column. On the details page of the scaling group, click the Instance Configuration Sources tab and then the Launch Templates tab.

  2. Find the launch template that you want to view and click Details in the Actions column to open the Launch Template ID panel. In this panel, you can view information about the launch template that is being used by the scaling group.

Modify the launch template of a scaling group

You can modify only the effective version and the Extend Launch Template parameter of a launch template. To modify a launch template, perform the following steps:

Important

If you want to modify other information about an existing launch template, you can create a new version from the existing launch template in the ECS console. For more information, see Create a launch template version.

  1. Go to the Launch Templates tab.

    1. Log on to the Auto Scaling console.

    2. In the left-side navigation pane, click Scaling Groups.

    3. In the top navigation bar, select the region where Auto Scaling is activated.

    4. On the Scaling Groups page, find the scaling group whose launch template that you want to manage and click Details in the Actions column. On the details page of the scaling group, click the Instance Configuration Sources tab and then the Launch Templates tab.

  2. Find the launch template that you want to modify and click Edit in the Actions column to open the Edit Launch Template dialog box. Then, modify the launch template based on your business requirements.

    Note

    You can enable the Extend Launch Template feature to specify multiple instance types at the same time. For more information, see Create a multi-instance type scaling group by using a launch template.

References

  • If you want to modify the effective launch template of a scaling group by calling an API operation, see ModifyScalingGroup.