All Products
Search
Document Center

Elastic Compute Service:CreateLaunchTemplateVersion

Last Updated:Nov 21, 2024

Creates a version for a launch template. You can use the created version to create Elastic Compute Service (ECS) instances, scaling groups, or auto provisioning groups.

Operation description

Usage notes

If you want to modify the parameters of a launch template version, you can create another version with different parameter settings for the launch template. You can create up to 30 versions for each launch template.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ecs:CreateLaunchTemplateVersioncreate
*LaunchTemplate
acs:ecs:{#regionId}:{#accountId}:launchtemplate/{#launchtemplateId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the command. You can call the DescribeRegions operation to query the most recent list of regions.

cn-hangzhou
LaunchTemplateIdstringNo

The ID of the launch template. For more information, call the DescribeLaunchTemplates operation. You must specify LaunchTemplateId or LaunchTemplateName to specify a launch template.

lt-m5eiaupmvm2op9d****
LaunchTemplateNamestringNo

The name of the launch template. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).

testLaunchTemplateName
VersionDescriptionstringNo

The description of the launch template version. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

testVersionDescription
ImageIdstringNo

The ID of the image to use to create the Elastic Compute Service (ECS) instance. You can call the DescribeImages operation to query available images.

win2008r2_64_ent_sp1_en-us_40G_alibase_20170915.vhd
ImageOwnerAliasstringNo

The source of the image.

Note This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
system
PasswordInheritbooleanNo

Specifies whether to use the password that is preconfigured in the image. Valid values:

  • true
  • false

Default value: false.

Note If you specify PasswordInherit, you must leave Password empty and make sure that a password is preconfigured for the image.
false
InstanceTypestringNo

The instance type. For more information, see Overview of instance families. You can also call the DescribeInstanceTypes operation to query the most recent list of instance types.

ecs.g5.large
SecurityGroupIdstringNo

The ID of the security group to which to assign the ECS instance created based on the launch template version. Instances in the same security group can access each other.

Note You cannot specify SecurityGroupId and SecurityGroupIds.N in the same request.
sg-bp15ed6xe1yxeycg****
VpcIdstringNo

The ID of the virtual private cloud (VPC) in which to create the ECS instance.

vpc-bp12433upq1y5scen****
VSwitchIdstringNo

The ID of the vSwitch to which to connect the instance. This parameter is required if you specify the VpcId parameter.

vsw-bp1s5fnvk4gn2tws0****
InstanceNamestringNo

The instance name. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-). The default value of this parameter is the InstanceId value.

When you create multiple ECS instances at a time, you can batch configure sequential names for the instances. The instance names can contain square brackets ([]) and commas (,). For more information, see Batch configure sequential names or hostnames for multiple instances.

k8s-node-[1,4]-alibabacloud
DescriptionstringNo

The description of the instance. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

testDescription
InternetMaxBandwidthInintegerNo

The maximum inbound public bandwidth. Unit: Mbit/s. Valid values:

  • When the purchased outbound public bandwidth is less than or equal to 10 Mbit/s, the valid values of this parameter are 1 to 10 and the default value is 10.
  • If the purchased outbound public bandwidth is greater than 10 Mbit/s, the valid values of this parameter range from 1 to the InternetMaxBandwidthOut value and the default value is the InternetMaxBandwidthOut value.
50
InternetMaxBandwidthOutintegerNo

The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100.

5
HostNamestringNo

The hostname of the instance.

  • The hostname cannot start or end with a period (.) or hyphen (-). It cannot contain consecutive periods (.) or hyphens (-).
  • For Windows instances, the hostname must be 2 to 15 characters in length and cannot contain periods (.) or contain only digits. It can contain letters, digits, and hyphens (-).
  • For instances that run other operating systems such as Linux, the hostname must be 2 to 64 characters in length. You can use periods (.) to separate the hostname into multiple segments. Each segment can contain letters, digits, and hyphens (-).
testHostName
ZoneIdstringNo

The ID of the zone to which the instance belongs.

cn-hangzhou-g
SystemDisk.CategorystringNo

The category of the system disk. Valid values:

  • cloud: basic disk.
  • cloud_efficiency: ultra disk.
  • cloud_ssd: standard SSD.
  • cloud_auto: Enterprise SSD (ESSD) AutoPL disk.
  • cloud_essd: ESSD. You can use SystemDisk.PerformanceLevel to set the performance level of the ESSD to use as the system disk.
  • cloud_essd_entry: ESSD Entry disk.

For non-I/O optimized instances of retired instance types, the default value is cloud. For other types of instances, the default value is cloud_efficiency.

cloud_ssd
SystemDisk.SizeintegerNo

The size of the system disk. Unit: GiB. Valid values:

  • Valid values if you set SystemDisk.Category to cloud: 20 to 500.
  • Valid values if you set SystemDisk.Category to other disk categories: 20 to 2048.

The value of this parameter must be at least 20 and greater than or equal to the size of the image.

40
SystemDisk.DiskNamestringNo

The name of the system disk. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).

cloud_ssdSystem
SystemDisk.DescriptionstringNo

The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

testSystemDiskDescription
SystemDisk.IopsintegerNo
Note This parameter is not publicly available.
30000
SystemDisk.PerformanceLevelstringNo

The performance level of the ESSD to be used as the system disk. Default value: PL0. Valid values:

  • PL0: A single ESSD can deliver up to 10,000 random read/write IOPS.
  • PL1: A single ESSD can deliver up to 50,000 random read/write IOPS.
  • PL2: A single ESSD can deliver up to 100,000 random read/write IOPS.
  • PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS.

For more information about ESSD performance levels, see ESSDs .

PL0
SystemDisk.DeleteWithInstancebooleanNo

Specifies whether to release the system disk when the instance is released. Valid values:

  • true
  • false

Default value: true.

true
SystemDisk.AutoSnapshotPolicyIdstringNo

The ID of the automatic snapshot policy to apply to the system disk.

sp-bp1dgzpaxwc4load****
SystemDisk.ProvisionedIopslongNo

The provisioned read/write IOPS of the ESSD AutoPL disk to use as data disk N. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS}

Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}

Note This parameter is available only if you set the Category parameter to cloud_auto. For more information, see ESSD AutoPL disks and Modify the performance configurations of an ESSD AutoPL disk.
50000
SystemDisk.BurstingEnabledbooleanNo

Specifies whether to enable the performance burst feature. Valid values:

  • true: encrypts the disk.
  • false: does not enable the performance burst feature.
true
IoOptimizedstringNo

Specifies whether to create an I/O optimized instance. Valid values:

  • none: The instance is not I/O optimized.
  • optimized: creates an I/O optimized instance.
optimized
InstanceChargeTypestringNo

The billing method of the instance. Valid values:

  • PrePaid: subscription. If you set this parameter to PrePaid, make sure that your account has sufficient credits. Otherwise, an InvalidPayMethod error is returned.
  • PostPaid: pay-as-you-go
PrePaid
PeriodintegerNo

The subscription period of the instance. Unit: months. This parameter is valid and required only when InstanceChargeType is set to PrePaid. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.

1
InternetChargeTypestringNo

The billing method for network usage. Default value: PayByTraffic. Valid values:

  • PayByBandwidth: pay-by-bandwidth
  • PayByTraffic: pay-by-traffic
Note When the pay-by-traffic billing method for network usage is used, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instance, use the pay-by-bandwidth billing method for network usage.
PayByTraffic
EnableVmOsConfigbooleanNo

Specifies whether to enable the operating system configuration of the instance.

false
NetworkTypestringNo

The network type of the instance. Valid values:

  • classic: classic network
  • vpc: VPC
vpc
UserDatastringNo

The user data of the instance. The user data must be encoded in Base64. The maximum size of raw data is 32 KB.

ZWNobyBoZWxsbyBl****
KeyPairNamestringNo

The name of the key pair to bind to the instance.

  • For Windows instances, this parameter is ignored The Password parameter is valid even if the KeyPairName parameter is specified.
  • For Linux instances, the password-based logon method is disabled by default.
testKeyPairName
RamRoleNamestringNo

The name of the instance Resource Access Management (RAM) role. You can call the ListRoles operation provided by RAM to query the instance RAM roles that you created.

testRamRoleName
AutoReleaseTimestringNo

The automatic release time of the instance. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

  • If the value of ss is not 00, the time is automatically rounded down to the nearest minute based on the value of mm.
  • The specified time must be at least 30 minutes later than the current time.
  • The specified time can be at most three years later than the current time.
2018-01-01T12:05:00Z
SpotStrategystringNo

The preemption policy for the pay-as-you-go instance. This parameter is valid only when the InstanceChargeType parameter is set to PostPaid. Default value: NoSpot. Valid values:

  • NoSpot: The instance is created as a pay-as-you-go instance.
  • SpotWithPriceLimit: The instances of the compute node are preemptible instances. These types of instances have a specified maximum hourly price.
  • SpotAsPriceGo: The instance is created as a preemptible instance for which the market price at the time of purchase is automatically used as the bid price.
NoSpot
SpotPriceLimitfloatNo

The maximum hourly price of the preemptible instance. A maximum of three decimal places are allowed.

0.97
SpotDurationintegerNo

The protection period of the preemptible instance. Unit: hours. Default value: 1. Valid values:

  • 1: After a preemptible instance is created, Alibaba Cloud ensures that the instance is not automatically released within 1 hour. After the 1-hour protection period ends, the system compares the bid price with the market price and checks the resource inventory to determine whether to retain or release the instance.
  • 0: After a preemptible instance is created, Alibaba Cloud does not ensure that the instance runs for 1 hour. The system compares the bid price with the market price and checks the resource inventory to determine whether to retain or release the instance.

Alibaba Cloud sends an ECS system event to notify you 5 minutes before the instance is released. Preemptible instances are billed by second. We recommend that you specify a protection period based on your business requirements.

Note This parameter takes effect only if SpotStrategy is set to SpotWithPriceLimit or SpotAsPriceGo.
1
ResourceGroupIdstringNo

The ID of the resource group to which to assign the instance.

rg-bp67acfmxazb4p****
SecurityEnhancementStrategystringNo

Specifies whether to enable security hardening for the operating system. Valid values:

  • Active: Security hardening is enabled. This value is applicable only to public images.
  • Deactive: Security hardening is disabled. This value is available to all types of images.
Active
PrivateIpAddressstringNo

The private IP address to assign to the instance.

To assign a private IP address to an instance of the VPC type, make sure that the IP address is an idle IP address within the CIDR block of the vSwitch specified by the VSwitchId parameter.

10.1.**.**
Ipv6AddressCountintegerNo

The number of IPv6 addresses to randomly generate for the primary elastic network interface (ENI). Valid values: 1 to 10.

1
DeploymentSetIdstringNo

The ID of the deployment set to which to deploy the instance.

ds-bp1brhwhoqinyjd6****
DataDiskarray<object>No

The data disks.

objectNo

Data disk N.

PerformanceLevelstringNo

The performance level of the ESSD to use as data disk N. The value of N must be the same as that in DataDisk.N.Category when DataDisk.N.Category is set to cloud_essd. Valid values:

  • PL0: A single ESSD can deliver up to 10,000 random read/write IOPS.
  • PL1 (default): A single ESSD can deliver up to 50,000 random read/write IOPS.
  • PL2: A single ESSD can deliver up to 100,000 random read/write IOPS.
  • PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS.

For information about ESSD performance levels, see ESSDs .

PL1
DescriptionstringNo

The description of data disk N. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

testDataDiskDescription
SnapshotIdstringNo

The ID of the snapshot to use to create data disk N. Valid values of N: 1 to 16. When DataDisk.N.SnapshotId is specified, DataDisk.N.Size is ignored. The data disk is created with the size of the specified snapshot.

Use snapshots created after July 15, 2013. Otherwise, an error is returned and your request is rejected.

s-bp17441ohwka0yuh****
SizeintegerNo

The size of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values:

  • Valid values if you set DataDisk.N.Category to cloud: 5 to 2000.

  • Valid values if you set DataDisk.N.Category to cloud_efficiency: 20 to 32768.

  • Valid values if you set DataDisk.N.Category to cloud_ssd: 20 to 32768.

  • Valid values if you set DataDisk.N.Category to cloud_essd: vary based on the DataDisk.N.PerformanceLevel value.

    • Valid values if you set DataDisk.N.PerformanceLevel to PL0: 1 to 32768.
    • Valid values if you set DataDisk.N.PerformanceLevel to PL1: 20 to 32768.
    • Valid values if you set DataDisk.N.PerformanceLevel to PL2: 461 to 32768.
    • Valid values if you set DataDisk.N.PerformanceLevel to PL3: 1261 to 32768.
  • Valid values if you set DataDisk.N.Category to cloud_auto: 1 to 32768.

  • Valid values if you set DataDisk.N.Category to cloud_essd_entry: 10 to 32768.

The value of this parameter must be greater than or equal to the size of the snapshot specified by SnapshotId.

2000
DevicestringNo

The mount point of data disk N. The mount points are named based on the number of data disks:

  • 1st to 25th data disks: /dev/xvd[b-z].
  • From the 26th data disk on: /dev/xvd[aa-zz]. For example, the 26th data disk is named /dev/xvdaa, the 27th data disk is named /dev/xvdab, and so on.
Note This parameter is applicable to scenarios in which a full image is used to create instances. A full image is an image that contains an operating system, application software, and business data. For these scenarios, you can set the parameter to the mount point of data disk N contained in the full image and modify DataDisk.N.Size and DataDisk.N.Category to change the category and size of data disk N created based on the image.
null
DiskNamestringNo

The name of data disk N. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain digits, letters, colons (:), underscores (_), and hyphens (-).

testDataDiskName
CategorystringNo

The category of data disk N. Valid values:

  • cloud: basic disk.
  • cloud_efficiency: ultra disk.
  • cloud_ssd: standard SSD.
  • cloud_auto: ESSD AutoPL disk.
  • cloud_essd: ESSD.
  • cloud_essd_entry: ESSD Entry disk.

For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud.

cloud_ssd
DeleteWithInstancebooleanNo

Specifies whether to release data disk N when the instance is released. Valid values:

  • true
  • false

Default value: true.

true
EncryptedstringNo

Specifies whether to encrypt data disk N.

false
ProvisionedIopslongNo

The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS}.

Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}.

Note This parameter is available only if you set DiskCategory to cloud_auto. For more information, see ESSD AutoPL disks and Modify the performance configurations of an ESSD AutoPL disk.
50000
BurstingEnabledbooleanNo

Specifies whether to enable the performance burst feature for data disk N. Valid values:

  • true
  • false
true
AutoSnapshotPolicyIdstringNo

The ID of the automatic snapshot policy to apply to data disk N.

sp-bp67acfmxazb4p****
NetworkInterfacearray<object>No

The information of the elastic network interfaces (ENIs).

objectNo

The information of the ENI.

VSwitchIdstringNo

The ID of the vSwitch to which to connect the secondary ENI. The instance and the secondary ENI must reside in the same zone of the same VPC, but they can be connected to different vSwitches. The value of N in NetworkInterface.N cannot be greater than 1.

vsw-bp1s5fnvk4gn2tws0****
NetworkInterfaceNamestringNo

The name of the secondary ENI. The value of N in NetworkInterface.N cannot be greater than 1.

testNetworkInterfaceName
DescriptionstringNo

The description of the secondary ENI. The description must be 2 to 256 characters in length and cannot start with http:// or https://. The value of N in NetworkInterface.N cannot be greater than 1.

testNetworkInterfaceDescription
SecurityGroupIdstringNo

The ID of the security group to which to assign the secondary ENI. The security groups of the secondary ENI and of the instance must belong to the same VPC. The value of N in NetworkInterface.N cannot be greater than 1.

Note You cannot specify both NetworkInterface.N.SecurityGroupId and NetworkInterface.N.SecurityGroupIds.N.
sg-bp15ed6xe1yxeycg****
PrimaryIpAddressstringNo

The primary private IP address of the secondary ENI. The value of N in NetworkInterface.N cannot be greater than 1.

192.168.**.**
SecurityGroupIdsarrayNo

The IDs of the security groups to which to assign the secondary ENI. The security group and the secondary ENI must belong to the same VPC. The valid values of N in SecurityGroupIds.N vary based on the maximum number of security groups to which a secondary ENI can belong. For more information, see the "Security group limits" section in Limits . The value of N in NetworkInterface.N cannot be greater than 1.

Note You cannot specify both NetworkInterface.N.SecurityGroupId and NetworkInterface.N.SecurityGroupIds.N.
stringNo

The ID of security group N to which to assign the secondary ENI. The security group and the secondary ENI must belong to the same VPC. The valid values of N in SecurityGroupIds.N vary based on the maximum number of security groups to which a secondary ENI can belong. For more information, see the "Security group limits" section in Limits . The value of N in NetworkInterface.N cannot be greater than 1.

Note You cannot specify both NetworkInterface.N.SecurityGroupId and NetworkInterface.N.SecurityGroupIds.N.
sg-bp67acfmxazb4p****
InstanceTypestringNo

The type of ENI N. Valid values of N: 1 and 2. If the value of N is 1, you can configure a primary or secondary ENI. If the value of N is 2, you must configure a primary ENI and a secondary ENI.

Valid values:

  • Primary
  • Secondary

Default value: Secondary.

ecs.g5.large
NetworkInterfaceTrafficModestringNo

The communication mode of the primary ENI. Valid values:

  • Standard: uses the TCP communication mode.
  • HighPerformance: uses the remote direct memory access (RDMA) communication mode with Elastic RDMA Interface (ERI) enabled.
Standard
Tagarray<object>No

The tags to add to the ECS instance, disks, and primary elastic network interface (ENI) created based on the launch template version.

objectNo

Tag N to add to the ECS instance, disks, and primary ENI created based on the launch template version.

KeystringNo

The key of tag N to add to the ECS instance, disks, and primary ENI created based on the launch template version. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key can be up to 128 characters in length and cannot contain http:// or https://. The tag key cannot start with acs: or aliyun.

TestKey
ValuestringNo

The value of tag N to add to the ECS instance, disks, and primary ENI created based on the launch template version. Valid values of N: 1 to 20. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot contain http:// or https://.

TestValue
SecurityGroupIdsarrayNo

The ID of security group N to which to assign the instance. The valid values of N depend on the maximum number of security groups to which the instance can belong. For more information, see Quantity limits.

Note The SecurityGroupId parameter and the SecurityGroupIds.N parameter are mutually exclusive.
stringNo

The ID of security group N to which to assign the instance. The valid values of N depend on the maximum number of security groups to which an instance can belong. For more information, see the "Security group limits" section in Limits .

Note The SecurityGroupId parameter and the SecurityGroupIds.N parameter are mutually exclusive.
sg-bp15ed6xe1yxeycg7****
SystemDisk.EncryptedstringNo

Specifies whether to encrypt the system disk. Valid values:

  • true
  • false

Default value: false

Note You cannot encrypt system disks when you create instances in Hong Kong Zone D or Singapore Zone A.
false
DeletionProtectionbooleanNo

Specifies whether to enable release protection for the instance. This parameter specifies whether you can use the ECS console or call the DeleteInstance operation to release the instance. Valid values:

  • true
  • false

Default value: false.

Note This parameter is applicable only to pay-as-you-go instances. The release protection feature can protect instances against manual releases, but not against automatic releases.
false
CreditSpecificationstringNo

The performance mode of the burstable instance. Valid values:

Standard
AutoRenewbooleanNo

Specifies whether to enable auto-renewal for the instance. This parameter is valid only if InstanceChargeType is set to PrePaid. Valid values:

  • true
  • false

Default value: false.

true
AutoRenewPeriodintegerNo

The auto-renewal period of the instance. Valid values:

Valid values when PeriodUnit is set to Month: 1, 2, 3, 6, 12, 24, 36, 48, and 60.

Default value: 1.

1
PeriodUnitstringNo

The unit of the subscription period. Valid values:

Month (default)

Month
HttpEndpointstringNo

Specifies whether to enable the access channel for instance metadata. Valid values:

  • enabled
  • disabled

Default value: enabled.

enabled
HttpTokensstringNo

Specifies whether to forcefully use the security hardening mode (IMDSv2) to access instance metadata. Valid values:

  • optional: does not forcefully use the security hardening mode (IMDSv2).
  • required: forcefully uses the security hardening mode (IMDSv2). After you set this parameter to required, you cannot access instance metadata in normal mode.

Default value: optional.

optional
HttpPutResponseHopLimitintegerNo
Note This parameter is not publicly available.
3

Response parameters

ParameterTypeDescriptionExample
object
LaunchTemplateVersionNumberlong

The number of the created version of the launch template.

2
RequestIdstring

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DExxxxx
LaunchTemplateIdstring

The ID of the launch template. For more information, see DescribeLaunchTemplates .

You must specify LaunchTemplateId or LaunchTemplateName to specify a launch template.

lt-bp1apo0bbbkuy0rj****

Examples

Sample success responses

JSONformat

{
  "LaunchTemplateVersionNumber": 2,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DExxxxx",
  "LaunchTemplateId": "lt-bp1apo0bbbkuy0rj****\n"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidRegion.NotExist%sThe specified region does not exist.
400MissingParameter%sA parameter is not specified.
400InvalidParameter%sThe specified parameter is invalid.
400InvalidDescription.MalformedThe specified parameter "Description" is not valid.The source description can be 2 to 256 characters in length. It cannot start with http:// and https://.
400InvalidUserData.SizeExceeded%sThe size of your specified user data exceeds the maximum allowed value.
400InvalidUserData.Base64FormatInvalid%sThe specified user data is invalid.
400InvalidHostName.MalformedThe specified parameter "HostName" is not valid.-
400InvalidParams.CreateEniParams%s-
400Duplicate.TagKeyThe Tag.N.Key contain duplicate key.The specified tag key already exists. Tag keys must be unique.
403LaunchTemplateVersionLimitExceed%sThe maximum number of launch template versions has been reached.
404InvalidLaunchTemplate.NotFound%sThe specified launch template does not exist. Check whether the parameter value is correct.
404InvalidResourceGroup.NotFoundThe ResourceGroup provided does not exist in our records.The specified resource group does not exist.
500InternalErrorThe request processing has failed due to some unknown error.An internal error has occurred. Try again later.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-10-12The Error code has changed. The request parameters of the API has changedView Change Details
2024-05-28The Error code has changed. The request parameters of the API has changedView Change Details
2023-10-18The Error code has changed. The request parameters of the API has changedView Change Details
2023-08-01The Error code has changed. The request parameters of the API has changedView Change Details
2023-03-10The Error code has changed. The response structure of the API has changedView Change Details
2022-07-11The Error code has changed. The request parameters of the API has changedView Change Details
2021-12-20The Error code has changed. The request parameters of the API has changedView Change Details