All Products
Search
Document Center

Elastic Compute Service:Create an instance by using a launch template

Last Updated:Nov 06, 2024

A launch template is a tool used to quickly create Elastic Compute Service (ECS) instances. The template contains all configurations (excluding passwords) that are used to create ECS instances. The configurations include the key pair, Resource Access Management (RAM) role, instance type, and network settings. Each template can have multiple versions, and different parameters can be configured in each version. You can use any version of a specific template to quickly create instances. This improves efficiency and user experience. This topic describes how to use a launch template to create an ECS instance.

Prerequisites

Procedure

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Deployment & Elasticity > icon1 > Launch Templates.

  3. On the Launch Templates page, find the template that you want to use and click Create Instance in the Actions column.

    You can also select a template ID to view the configurations of the template and click Create Instance in the Actions column. 新建版本

  4. On the Custom Launch tab, select the template and version. Check all configurations after they are loaded.

    Note

    If you want to modify parameters or the selected template does not include the required parameters, click the 编辑 icon to modify the configurations.

  5. Create an ECS instance.

    • To create a subscription instance, configure the Duration parameter and select ECS Terms of Service and Product Terms of Service. Click Create Order.

    • If you select a pay-as-you-go instance, select ECS Terms of Service and Product Terms of Service and click Create Instance.

    After the instance is created, go to the Instance page in the ECS console to view the instance.