Updated on 2025-08-28 GMT+08:00

Creating a Launch Template

Scenarios

A launch template contains the information required to quickly launch an ECS, for example, the ECS specifications, network settings, and a key pair (excluding the password). You can launch an ECS quickly without specifying the configuration parameters every time.

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.
  • The parameters you can configure when you create a launch template are optional.

    However, if your launch template does not include parameters, such as the flavor and image, you need to set them when you use the template to create an ECS.

  • The configuration cannot be saved as a launch template if the billing mode is yearly/monthly or spot block, host security is enabled, or the login mode is password.
  • 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 When Buying an ECS

You can save the ECS configurations as a launch template when creating an ECS.

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click . Under Compute, choose Elastic Cloud Server.
  4. Click Buy ECS.
  5. On the Custom Config tab, set the required parameters.

    For details about the parameters, see Purchasing an ECS in Custom Config Mode.

  6. In the Configuration Summary panel on the right side, review the ECS configuration details.

    Unspecified mandatory fields are displayed in red. You need to set them in the parameter configuration area.

  7. 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 those values. For details, see Savable Launch Settings.

  8. Read the agreement and click Agree and Submit.
  9. In the displayed dialog box, enter a launch template name and description, and click OK.

    You can view the created template on the launch template list page.

Creating a Launch Template on the Launch Templates Console

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click . Under Compute, choose Elastic Cloud Server.
  4. In the navigation pane on the left, choose Launch Templates.
  5. On the Launch Templates page, click Create Launch Template.
  6. On the Create Launch Template page, configure the required parameters.

    For details about the parameters, see Purchasing an ECS in Custom Config Mode.

  7. In the Configuration Summary panel on the right side, review the ECS configuration details.

    Unspecified mandatory fields are displayed in red. You need to set them in the parameter configuration area.

  8. 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.

Savable Launch Settings

When you use a launch template in custom config mode to launch ECSs, some parameter values cannot be saved to the template. The system will automatically convert those values.

Table 1 Rules for saving custom purchase parameters to templates

Module

Parameter

Setting

Savable to Launch Template

Value Converted When Saved to Launch Template

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

No

No

Disabled by default.

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

Set password later

Key pair

Yes

No

The key pair you selected

Set password later

Yes

No

Set password later

Password from image

No

No

Use the image password. The password is empty.

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