Creating a Launch Template
Scenarios
A launch template is used to quickly create instances. It contains the configuration information required for creating instance, including the billing mode, region, AZ, instance specifications, image, system and data disks, network, and key pair (excluding the password). After a launch template is created, a new launch template is generated, and version 1 is automatically assigned as its default version.
This section describes how to create a launch template on the management console.
Constraints
- Each account can have a maximum of 30 launch templates in each region.
- When you create a launch template, the configuration items are classified into mandatory and optional items. The mandatory items include the instance, image, VPC, and launch template name. If the mandatory items are not configured, the launch template cannot be created. You can set the parameters that are not preset in the launch template when using the template to create instances.
- When you save a launch template through the ECS custom config mode, the system automatically converts the values of certain parameters. For example, the yearly/monthly billing mode will be converted to the pay-per-use billing mode. For details, see Supported Parameter Configurations for Launch Templates.
- After a launch template is created, it cannot be modified. You can create multiple launch templates as required, with each configured with different parameters.
- Currently, launch templates are supported in AP-Singapore and CN-Hong Kong.
Creating a Launch Template
You can save the instance configurations as a launch template when purchasing instances in custom mode, or create a launch template on the Auto Launch Groups console.
You can save the ECS configurations as a launch template when creating an ECS.
- Go to the Buy ECS page. On the displayed page, click the Custom Config tab in the upper left corner.
- On the Custom Config tab, set the required parameters.
For details about the parameters, see Purchasing an ECS in Custom Config Mode.
- In the Configuration Summary panel on the right side, review the ECS configuration details.
Unspecified mandatory parameters are highlighted in red. Set them in the parameter configuration area.
- In the Configuration Summary panel, click Save as Launch Template.
Some parameter values cannot be saved to the launch template. The system will automatically convert them. For details, see Supported Parameter Configurations for Launch Templates.
- Read the agreement and click Agree and Save.
- In the displayed dialog box, configure the template information.
Table 1 Parameters for creating a launch template Parameter
Description
Launch Template Name
Mandatory.
The name of the launch template. It can contain 1 to 64 characters, including only letters, digits, underscores (_), hyphens (-), and periods (.).
Description
Optional.
The description of the launch template, which helps you manage the template later. It can contain 0 to 85 characters and cannot contain left angle brackets (<), right angle brackets (>), or control characters (such as line breaks, tabs, and backspaces).
- Click OK. The launch template is created.
Go back to the launch template list and you can view the created launch template.
- Go to the launch template list page.
- In the upper right corner of the launch template list, click Create Launch Template.
The Create Launch Template page is displayed.
- Configure the ECS instance configurations and launch template parameters.
For details about ECS instance configurations, see Purchasing an ECS in Custom Config Mode.
For details about launch template parameters, see Table 2.Table 2 Parameters for creating a launch template Parameter
Description
Launch Template Name
Mandatory.
The name of the launch template. It can contain 1 to 64 characters, including only letters, digits, underscores (_), hyphens (-), and periods (.).
Description
Optional.
The description of the launch template, which helps you manage the template later. It can contain 0 to 85 characters and cannot contain left angle brackets (<), right angle brackets (>), or control characters (such as line breaks, tabs, and backspaces).
- In the Configuration Summary panel on the right side, review the ECS configuration details.
Unspecified mandatory parameters are highlighted in red. Set them in the parameter configuration area.
- Read and agree to the agreement, and click Create Now.
Go back to the launch template list and you can view the created launch template.
Supported Parameter Configurations for Launch Templates
When you create a launch template through the ECS custom config mode, some parameter values cannot be saved to the template. The system will automatically convert these values.
| Module | Parameter | Custom Configuration | Saved to Launch Template | Value Converted | Value Saved in Launch Template |
|---|---|---|---|---|---|
| Basic Configuration | Billing Mode | Yearly/Monthly | Yes | Yes | Pay-per-use |
| Pay-per-use | Yes | No | Pay-per-use | ||
| Spot pricing - Spot | Yes | No | Spot pricing - Spot | ||
| Spot pricing - Spot block | Yes | Yes | Pay-per-use | ||
| Region | Select a region | Yes | Yes | The region that the launch template belongs to | |
| AZ | Random | Yes | No | Random | |
| Select an AZ | Yes | Yes | The AZ that the launch template belongs to | ||
| Edge AZ | No | No | N/A | ||
| Randomly allocated to multiple AZs | No | No | N/A | ||
| Instance | Specifications | Select specifications | Yes | No | The specifications you selected |
| OS | Image | Select an image | Yes | No | The image you selected |
| Host protection (HSS) | Enable | Yes | No | Enable | |
| Application acceleration | Enable | No | No | Disabled by default. | |
| Enclave | Enable | No | No | Disabled by default. | |
| Storage & Backup | System/Data Disk | Select a disk type | Yes | No | The disk type you selected |
| Specify the disk size | Yes | No | The disk size you specified | ||
| Select Encryption | Yes | No | Encryption enabled | ||
| Specify the KMS key name/ID | Yes | No | The KMS key name/ID you specified | ||
| Disk type (VBD/SCSI) | No | No | N/A | ||
| Storage type (EVS/DSS) | No | No | N/A | ||
| Storage pool ID | No | No | N/A | ||
| IOPS/Throughput | No | No | N/A | ||
| Select Sharing | No | No | N/A | ||
| Select Release with ECS | No | No | N/A | ||
| Select Create Disk from Data Disk Image | No | No | N/A | ||
| Cloud Backup and Recovery | Create new/Use existing/Disable backup | No | No | N/A | |
| Backup Policy | No | No | N/A | ||
| Vault Capacity | No | No | N/A | ||
| Cloud Backup Vault | No | No | N/A | ||
| Network | VPC | Select a VPC | Yes | No | The VPC you selected |
| Primary NIC | Select a subnet | Yes | No | The subnet you selected | |
| Automatically assign IP address/Manually specify IP address | No | No | Automatically assign IP address | ||
| IPv6 not required/Automatically-assigned IPv6 address | No | No | IPv6 not required/Automatically-assigned IPv6 address | ||
| Bind a shared bandwidth | No | No | No shared bandwidth | ||
| Source/Destination Check | No | No | N/A | ||
| Security Group | Select a security group | Yes | No | The security group you selected | |
| Public Network Access | EIP | Select an EIP type | Yes | No | The EIP type you selected |
| Select Bandwidth for Billed By | Yes | No | Billed by bandwidth | ||
| Specify the bandwidth size | Yes | No | The bandwidth size you specified | ||
| Select Shared bandwidth for Billed By and select a bandwidth name | Yes | No | The bandwidth name you selected | ||
| EIP Pool | No | No | N/A | ||
| Use existing | No | No | N/A | ||
| Select Release with ECS | No | No | Deselected by default | ||
| Instance Management | ECS Name | Specify an ECS name | Yes | No | The ECS name you specified |
| Select Allow duplicate name | No | No | N/A | ||
| Login Mode | Password | No | No | Unconfigured | |
| Key pair | Yes | No | The key pair you selected | ||
| Set password later | No | No | Unconfigured | ||
| Password from image | No | No | Unconfigured | ||
| Enterprise Project | Specify an enterprise project | Yes | No | The enterprise project you selected | |
| Tag | Add a tag | Yes | No | The tag you added | |
| Advanced Settings | Detailed monitoring | Enable | Yes | No | Detailed monitoring enabled |
| ECS group | Select ECS group | No | No | N/A | |
| ECS Description | Enter a description | Yes | No | The description you entered | |
| User Data | Inject user data | Yes | No | The data you injected | |
| Agency | Select an agency | Yes | No | The agency you selected | |
| Metadata Access | Enable | No | No | N/A | |
| Metadata Version | Only V2 (Token) | No | No | N/A | |
| CPU Options | Select Specify CPU options | No | No | N/A | |
| Purchase Details | Required Duration | Select Set scheduled deletion time | No | No | N/A |
| Required Duration | 1 month | No | No | N/A | |
| Auto-renew | Enable | No | No | N/A | |
| Quantity | 1 | No | No | N/A |
Helpful Links
After a launch template is created, you can use it to perform operations listed in the following table.
| Related Operations | Scenario | Reference |
|---|---|---|
| Creating ECSs | You can use a launch template to quickly create ECSs, saving time on repeatedly configuring parameters. | Using a Launch Template to Purchase ECSs (On the Buy ECS Page) |
| Using a Launch Template to Purchase ECSs (On the Launch Templates Page) | ||
| Creating an auto launch group | When creating an auto launch group, you need to select a launch template as the configuration source. | |
| Viewing launch template details | You can view details about a launch template. | |
| Deleting a launch template | You can delete a launch template that is no longer needed. |
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot