You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Launch templates
Creating instance launch templates
Copy page
Download PDF
Creating instance launch templates
When you create an instance launch template, not all configuration information is validated. Therefore, if any configuration information is incorrect, you can modify it when you purchase an instance.​
You can use one of the following methods to create an instance launch template.​
Create an instance launch template by following the wizard​
  1. Log in to the Launch Templates console.​
  1. In the top menu bar, select a region.​
  1. Click "Create Template" to go to the "Create Template" page.​
  1. The parameters required to create a launch template are generally the same as those required to purchase an ECS instance. The following table describes the parameters specific to template creation. The actual parameters displayed in the console prevail. For more information, see Purchasing ECS instances by following the wizard.​
  • ​
    Differential parameter​
    Description​
    Clone template​
    This parameter is used to create an instance launch template from an existing template. In this example, this parameter is not configured. For information about how to configure the parameter, see Create an instance launch template by cloning a template.​
    Basic configuration, Network configuration, and Custom configuration​
    • Except for "Instance Type", all other parameters are optional. You can leave the optional parameters empty and configure them when you purchase instances.​
    • The supported instance types displayed in the console prevail.​
    Subnet and Secondary network interface​
    Only IP addresses automatically assigned by the platform are supported.​
    Login credentials​
    Only SSH key pairs can be stored as login credentials in the template. You can leave this parameter empty and configure it when you purchase instances.​
    Name​
    The name of the instance launch template.​
    ​
  1. Click Create Now to complete the actions.​
Create an instance launch template by cloning a template​
  1. Log in to the Launch Templates console.​
  1. In the top menu bar, select a region.​
  1. Click "Create Template" to go to the "Create Template" page.​
  1. The parameters required to create a launch template are generally the same as those required to purchase an ECS instance. The following table describes the parameters specific to template creation. The actual parameters displayed in the console prevail. For more information, see Purchasing ECS instances by following the wizard.​
  • ​
    Differential parameter​
    Description​
    Clone template​
    After you select the name of an existing template and its version, the configuration information from that version is quickly copied and filled in the corresponding fields. You only need to modify the parameters that do not meet your business requirements.​
    Basic configuration, Network configuration, and Custom configuration​
    Except for "Instance Type", all other parameters are optional. You can leave the optional parameters empty and configure them when you purchase instances.​
    Subnet and Secondary network interface​
    Only IP addresses automatically assigned by the platform are supported.​
    Login credentials​
    Only SSH key pairs can be stored as login credentials in the template. You can leave this parameter empty and configure it when you purchase instances.​
    Name​
    The name of the instance launch template.​
    ​
  1. Click Create Now to complete the actions.​
Create an instance launch template by using an existing instance​
  1. Log in to the ECS console.​
  1. In the top menu bar, select the region of the target instance.​
  1. On the Instances page, click "... > Instance settings > Save as Template" in the "Actions" column of the instance.​
  1. Confirm the configuration information. If the configuration does not meet your business requirements, click the ​​ icon to go to the corresponding configuration page.​
  1. After you confirm that the configuration information is correct, enter the name of the instance launch template.​
  1. Click Create Now to complete the actions.​
Create an instance launch template on the instance purchase page​
  1. Log in to the ECS console.​
  1. When you purchase an ECS instance by following the wizard, click the "Save as a launch template" button in the "Confirm" step.​
  1. Select the method for saving the template. In this example, "Template" is selected. Enter the name of the instance launch template.​
  1. Click the "Save" button to complete the operation.​
  • To continue instance creation, click "Return to Create Instances" to go back to the "Confirm" step.​
  • To view the new template, click "View new Template" to go to the "Launch Templates" page.​
Subsequent operation​
​
Last updated: 2026.06.18 17:49:50