published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
An instance launch template is a collection of instance configuration information for quickly purchasing instances. You can store all configuration information except passwords in the template, including key pairs, compute specifications, cloud disks, networks, etc. If all configuration information is valid, you can purchase instances with one click without repeated configuration.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
ecsLaunchTemplateDemo:
type: volcenginecc:ecs:LaunchTemplate
name: EcsLaunchTemplateDemo
properties:
launchTemplateVersion:
deployment_set_group_number: 0
deployment_set_id: dps-ydzc5xxxxxxkak3c5b9vu
description: ecs_launch_template test
eip:
bandwidth: 1
bandwidthPackageId: bwp-1a1fvbxxxxxxvepl9jzfmf
billingType: 0
isp: BGP
releaseWithInstance: true
securityProtectionInstanceId: 0
securityProtectionTypes:
- AntiDDoS_Enhanced
host_name: myname
hpc_cluster_id: ""
image_id: image-yzpvmk9xxxxxxgqcsdamq
image_name: Ubuntu 24.04 with LLM Knowledge Base 64 bit
instance_charge_type: PostPaid
instance_name: ccapi-dx-0
instance_type_id: ecs.g4i.large
keep_image_credential: false
key_pair_name: MigrationKey-job-yecd7dromy38dfaxgxt8
network_interfaces:
- securityGroupIds:
- sg-1jolcljxxxxxxpe70vpx
subnetId: subnet-btd4nhxxxxxxb2tl1jdsb
project_name: default
scheduled_instance:
scheduledInstanceDescription: test
scheduledInstanceName: test-template
security_enhancement_strategy: Active
spot_price_limit: 0
spot_strategy: NoSpot
suffix_index: 1
tags:
- key: env
value: test
unique_suffix: false
user_data: ZWNobyBoZWxsbyBlY3Mh
version_description: test
volumes:
- deleteWithInstance: true
extraPerformanceIops: 0
extraPerformanceThroughputMb: 0
extraPerformanceTypeId: ""
size: 50
snapshotId: ""
volumeType: ESSD_PL0
vpc_id: vpc-1jolcldhxxxxxxq7yms
zone_id: cn-beijing-a
launchTemplateName: test
launchTemplateProjectName: default
launchTemplateTags:
- key: env
value: test
Create LaunchTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LaunchTemplate(name: string, args: LaunchTemplateArgs, opts?: CustomResourceOptions);@overload
def LaunchTemplate(resource_name: str,
args: LaunchTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LaunchTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
launch_template_name: Optional[str] = None,
default_version_number: Optional[int] = None,
launch_template_project_name: Optional[str] = None,
launch_template_tags: Optional[Sequence[LaunchTemplateLaunchTemplateTagArgs]] = None,
launch_template_version: Optional[LaunchTemplateLaunchTemplateVersionArgs] = None)func NewLaunchTemplate(ctx *Context, name string, args LaunchTemplateArgs, opts ...ResourceOption) (*LaunchTemplate, error)public LaunchTemplate(string name, LaunchTemplateArgs args, CustomResourceOptions? opts = null)
public LaunchTemplate(String name, LaunchTemplateArgs args)
public LaunchTemplate(String name, LaunchTemplateArgs args, CustomResourceOptions options)
type: volcenginecc:ecs:LaunchTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LaunchTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LaunchTemplateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LaunchTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LaunchTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LaunchTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LaunchTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LaunchTemplate resource accepts the following input properties:
- Launch
Template stringName - Instance launch template name.
- Default
Version intNumber - Instance launch template default version number
- Launch
Template stringProject Name - Project associated with the instance launch template.
-
List<Volcengine.
Launch Template Launch Template Tag> - Launch
Template Volcengine.Version Launch Template Launch Template Version - Instance launch template version information
- Launch
Template stringName - Instance launch template name.
- Default
Version intNumber - Instance launch template default version number
- Launch
Template stringProject Name - Project associated with the instance launch template.
-
[]Launch
Template Launch Template Tag Args - Launch
Template LaunchVersion Template Launch Template Version Args - Instance launch template version information
- launch
Template StringName - Instance launch template name.
- default
Version IntegerNumber - Instance launch template default version number
- launch
Template StringProject Name - Project associated with the instance launch template.
-
List<Launch
Template Launch Template Tag> - launch
Template LaunchVersion Template Launch Template Version - Instance launch template version information
- launch
Template stringName - Instance launch template name.
- default
Version numberNumber - Instance launch template default version number
- launch
Template stringProject Name - Project associated with the instance launch template.
-
Launch
Template Launch Template Tag[] - launch
Template LaunchVersion Template Launch Template Version - Instance launch template version information
- launch_
template_ strname - Instance launch template name.
- default_
version_ intnumber - Instance launch template default version number
- launch_
template_ strproject_ name - Project associated with the instance launch template.
-
Sequence[Launch
Template Launch Template Tag Args] - launch_
template_ Launchversion Template Launch Template Version Args - Instance launch template version information
- launch
Template StringName - Instance launch template name.
- default
Version NumberNumber - Instance launch template default version number
- launch
Template StringProject Name - Project associated with the instance launch template.
- List<Property Map>
- launch
Template Property MapVersion - Instance launch template version information
Outputs
All input properties are implicitly available as output properties. Additionally, the LaunchTemplate resource produces the following output properties:
- Created
At string - Instance launch template creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version intNumber - Latest version number of the instance launch template.
- Launch
Template stringId - Instance launch template ID
- Updated
At string - Instance launch template update time
- Created
At string - Instance launch template creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Latest
Version intNumber - Latest version number of the instance launch template.
- Launch
Template stringId - Instance launch template ID
- Updated
At string - Instance launch template update time
- created
At String - Instance launch template creation time
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version IntegerNumber - Latest version number of the instance launch template.
- launch
Template StringId - Instance launch template ID
- updated
At String - Instance launch template update time
- created
At string - Instance launch template creation time
- id string
- The provider-assigned unique ID for this managed resource.
- latest
Version numberNumber - Latest version number of the instance launch template.
- launch
Template stringId - Instance launch template ID
- updated
At string - Instance launch template update time
- created_
at str - Instance launch template creation time
- id str
- The provider-assigned unique ID for this managed resource.
- latest_
version_ intnumber - Latest version number of the instance launch template.
- launch_
template_ strid - Instance launch template ID
- updated_
at str - Instance launch template update time
- created
At String - Instance launch template creation time
- id String
- The provider-assigned unique ID for this managed resource.
- latest
Version NumberNumber - Latest version number of the instance launch template.
- launch
Template StringId - Instance launch template ID
- updated
At String - Instance launch template update time
Look up Existing LaunchTemplate Resource
Get an existing LaunchTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LaunchTemplateState, opts?: CustomResourceOptions): LaunchTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
default_version_number: Optional[int] = None,
latest_version_number: Optional[int] = None,
launch_template_id: Optional[str] = None,
launch_template_name: Optional[str] = None,
launch_template_project_name: Optional[str] = None,
launch_template_tags: Optional[Sequence[LaunchTemplateLaunchTemplateTagArgs]] = None,
launch_template_version: Optional[LaunchTemplateLaunchTemplateVersionArgs] = None,
updated_at: Optional[str] = None) -> LaunchTemplatefunc GetLaunchTemplate(ctx *Context, name string, id IDInput, state *LaunchTemplateState, opts ...ResourceOption) (*LaunchTemplate, error)public static LaunchTemplate Get(string name, Input<string> id, LaunchTemplateState? state, CustomResourceOptions? opts = null)public static LaunchTemplate get(String name, Output<String> id, LaunchTemplateState state, CustomResourceOptions options)resources: _: type: volcenginecc:ecs:LaunchTemplate get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
At string - Instance launch template creation time
- Default
Version intNumber - Instance launch template default version number
- Latest
Version intNumber - Latest version number of the instance launch template.
- Launch
Template stringId - Instance launch template ID
- Launch
Template stringName - Instance launch template name.
- Launch
Template stringProject Name - Project associated with the instance launch template.
-
List<Volcengine.
Launch Template Launch Template Tag> - Launch
Template Volcengine.Version Launch Template Launch Template Version - Instance launch template version information
- Updated
At string - Instance launch template update time
- Created
At string - Instance launch template creation time
- Default
Version intNumber - Instance launch template default version number
- Latest
Version intNumber - Latest version number of the instance launch template.
- Launch
Template stringId - Instance launch template ID
- Launch
Template stringName - Instance launch template name.
- Launch
Template stringProject Name - Project associated with the instance launch template.
-
[]Launch
Template Launch Template Tag Args - Launch
Template LaunchVersion Template Launch Template Version Args - Instance launch template version information
- Updated
At string - Instance launch template update time
- created
At String - Instance launch template creation time
- default
Version IntegerNumber - Instance launch template default version number
- latest
Version IntegerNumber - Latest version number of the instance launch template.
- launch
Template StringId - Instance launch template ID
- launch
Template StringName - Instance launch template name.
- launch
Template StringProject Name - Project associated with the instance launch template.
-
List<Launch
Template Launch Template Tag> - launch
Template LaunchVersion Template Launch Template Version - Instance launch template version information
- updated
At String - Instance launch template update time
- created
At string - Instance launch template creation time
- default
Version numberNumber - Instance launch template default version number
- latest
Version numberNumber - Latest version number of the instance launch template.
- launch
Template stringId - Instance launch template ID
- launch
Template stringName - Instance launch template name.
- launch
Template stringProject Name - Project associated with the instance launch template.
-
Launch
Template Launch Template Tag[] - launch
Template LaunchVersion Template Launch Template Version - Instance launch template version information
- updated
At string - Instance launch template update time
- created_
at str - Instance launch template creation time
- default_
version_ intnumber - Instance launch template default version number
- latest_
version_ intnumber - Latest version number of the instance launch template.
- launch_
template_ strid - Instance launch template ID
- launch_
template_ strname - Instance launch template name.
- launch_
template_ strproject_ name - Project associated with the instance launch template.
-
Sequence[Launch
Template Launch Template Tag Args] - launch_
template_ Launchversion Template Launch Template Version Args - Instance launch template version information
- updated_
at str - Instance launch template update time
- created
At String - Instance launch template creation time
- default
Version NumberNumber - Instance launch template default version number
- latest
Version NumberNumber - Latest version number of the instance launch template.
- launch
Template StringId - Instance launch template ID
- launch
Template StringName - Instance launch template name.
- launch
Template StringProject Name - Project associated with the instance launch template.
- List<Property Map>
- launch
Template Property MapVersion - Instance launch template version information
- updated
At String - Instance launch template update time
Supporting Types
LaunchTemplateLaunchTemplateTag, LaunchTemplateLaunchTemplateTagArgs
LaunchTemplateLaunchTemplateVersion, LaunchTemplateLaunchTemplateVersionArgs
- Deployment
Set intGroup Number - When the ECS instance needs to join or adjust the deployment set strategy to the deployment set group high availability strategy (AvailabilityGroup), you can use this parameter to specify the group number of the instance in the deployment set.
- Deployment
Set stringId - Deployment set ID the instance needs to join.
- Description string
- Instance description
- Eip
Volcengine.
Launch Template Launch Template Version Eip - Public IP information bound to the instance
- Host
Name string - Instance hostname. For Linux, the hostname length must be 2–59 characters. For Windows, the hostname length must be 2–10 characters.
- Hpc
Cluster stringId - When creating a high-performance computing GPU instance, please specify the high-performance computing cluster ID.
- Image
Id string - Image ID.
- Image
Name string - Image name.
- Instance
Charge stringType - Billing type for the instance and cloud disk. Options: PostPaid: Pay-as-you-go. PrePaid: Yearly/monthly subscription. Esi: Elastic reservation instance. Segmented: Time-based elastic reservation instance.
- Instance
Name string - Instance name.
- Instance
Type stringId - Instance specification
- Keep
Image boolCredential - Whether to retain image settings. Values: true: Retain image settings. If retained, the instance will use the preset password or key pair from the image for login. false (default): Do not retain image settings.
- Key
Pair stringName - Key pair bound to the instance.
- Network
Interfaces List<Volcengine.Launch Template Launch Template Version Network Interface> - Project
Name string - Project associated with the instance.
- Scheduled
Instance Volcengine.Launch Template Launch Template Version Scheduled Instance - Elastic reservation order information
- Security
Enhancement stringStrategy - Enable security hardening. Active: Enable security hardening, applies only to public images. InActive: Disable security hardening, applies to all images.
- Spot
Price doubleLimit - Maximum hourly price for preemptible instances
- Spot
Strategy string - Preemptible strategy for pay-as-you-go billing. Options: NoSpot: Create a regular pay-as-you-go instance. SpotAsPriceGo: System automatically bids, follows the current market price for preemptible instances. SpotWithPriceLimit: Preemptible instance with a bid limit.
- Suffix
Index int - Starting number for the sequential suffix
-
List<Volcengine.
Launch Template Launch Template Version Tag> - Unique
Suffix bool - Indicates whether to automatically add sequential suffixes to Hostname and InstanceName when creating multiple instances
- User
Data string - Custom data for the instance.
- Version
Description string - Template version description.
- Volumes
List<Volcengine.
Launch Template Launch Template Version Volume> - Vpc
Id string - Private network ID.
- Zone
Id string - Instance availability zone ID
- Deployment
Set intGroup Number - When the ECS instance needs to join or adjust the deployment set strategy to the deployment set group high availability strategy (AvailabilityGroup), you can use this parameter to specify the group number of the instance in the deployment set.
- Deployment
Set stringId - Deployment set ID the instance needs to join.
- Description string
- Instance description
- Eip
Launch
Template Launch Template Version Eip - Public IP information bound to the instance
- Host
Name string - Instance hostname. For Linux, the hostname length must be 2–59 characters. For Windows, the hostname length must be 2–10 characters.
- Hpc
Cluster stringId - When creating a high-performance computing GPU instance, please specify the high-performance computing cluster ID.
- Image
Id string - Image ID.
- Image
Name string - Image name.
- Instance
Charge stringType - Billing type for the instance and cloud disk. Options: PostPaid: Pay-as-you-go. PrePaid: Yearly/monthly subscription. Esi: Elastic reservation instance. Segmented: Time-based elastic reservation instance.
- Instance
Name string - Instance name.
- Instance
Type stringId - Instance specification
- Keep
Image boolCredential - Whether to retain image settings. Values: true: Retain image settings. If retained, the instance will use the preset password or key pair from the image for login. false (default): Do not retain image settings.
- Key
Pair stringName - Key pair bound to the instance.
- Network
Interfaces []LaunchTemplate Launch Template Version Network Interface - Project
Name string - Project associated with the instance.
- Scheduled
Instance LaunchTemplate Launch Template Version Scheduled Instance - Elastic reservation order information
- Security
Enhancement stringStrategy - Enable security hardening. Active: Enable security hardening, applies only to public images. InActive: Disable security hardening, applies to all images.
- Spot
Price float64Limit - Maximum hourly price for preemptible instances
- Spot
Strategy string - Preemptible strategy for pay-as-you-go billing. Options: NoSpot: Create a regular pay-as-you-go instance. SpotAsPriceGo: System automatically bids, follows the current market price for preemptible instances. SpotWithPriceLimit: Preemptible instance with a bid limit.
- Suffix
Index int - Starting number for the sequential suffix
-
[]Launch
Template Launch Template Version Tag - Unique
Suffix bool - Indicates whether to automatically add sequential suffixes to Hostname and InstanceName when creating multiple instances
- User
Data string - Custom data for the instance.
- Version
Description string - Template version description.
- Volumes
[]Launch
Template Launch Template Version Volume - Vpc
Id string - Private network ID.
- Zone
Id string - Instance availability zone ID
- deployment
Set IntegerGroup Number - When the ECS instance needs to join or adjust the deployment set strategy to the deployment set group high availability strategy (AvailabilityGroup), you can use this parameter to specify the group number of the instance in the deployment set.
- deployment
Set StringId - Deployment set ID the instance needs to join.
- description String
- Instance description
- eip
Launch
Template Launch Template Version Eip - Public IP information bound to the instance
- host
Name String - Instance hostname. For Linux, the hostname length must be 2–59 characters. For Windows, the hostname length must be 2–10 characters.
- hpc
Cluster StringId - When creating a high-performance computing GPU instance, please specify the high-performance computing cluster ID.
- image
Id String - Image ID.
- image
Name String - Image name.
- instance
Charge StringType - Billing type for the instance and cloud disk. Options: PostPaid: Pay-as-you-go. PrePaid: Yearly/monthly subscription. Esi: Elastic reservation instance. Segmented: Time-based elastic reservation instance.
- instance
Name String - Instance name.
- instance
Type StringId - Instance specification
- keep
Image BooleanCredential - Whether to retain image settings. Values: true: Retain image settings. If retained, the instance will use the preset password or key pair from the image for login. false (default): Do not retain image settings.
- key
Pair StringName - Key pair bound to the instance.
- network
Interfaces List<LaunchTemplate Launch Template Version Network Interface> - project
Name String - Project associated with the instance.
- scheduled
Instance LaunchTemplate Launch Template Version Scheduled Instance - Elastic reservation order information
- security
Enhancement StringStrategy - Enable security hardening. Active: Enable security hardening, applies only to public images. InActive: Disable security hardening, applies to all images.
- spot
Price DoubleLimit - Maximum hourly price for preemptible instances
- spot
Strategy String - Preemptible strategy for pay-as-you-go billing. Options: NoSpot: Create a regular pay-as-you-go instance. SpotAsPriceGo: System automatically bids, follows the current market price for preemptible instances. SpotWithPriceLimit: Preemptible instance with a bid limit.
- suffix
Index Integer - Starting number for the sequential suffix
-
List<Launch
Template Launch Template Version Tag> - unique
Suffix Boolean - Indicates whether to automatically add sequential suffixes to Hostname and InstanceName when creating multiple instances
- user
Data String - Custom data for the instance.
- version
Description String - Template version description.
- volumes
List<Launch
Template Launch Template Version Volume> - vpc
Id String - Private network ID.
- zone
Id String - Instance availability zone ID
- deployment
Set numberGroup Number - When the ECS instance needs to join or adjust the deployment set strategy to the deployment set group high availability strategy (AvailabilityGroup), you can use this parameter to specify the group number of the instance in the deployment set.
- deployment
Set stringId - Deployment set ID the instance needs to join.
- description string
- Instance description
- eip
Launch
Template Launch Template Version Eip - Public IP information bound to the instance
- host
Name string - Instance hostname. For Linux, the hostname length must be 2–59 characters. For Windows, the hostname length must be 2–10 characters.
- hpc
Cluster stringId - When creating a high-performance computing GPU instance, please specify the high-performance computing cluster ID.
- image
Id string - Image ID.
- image
Name string - Image name.
- instance
Charge stringType - Billing type for the instance and cloud disk. Options: PostPaid: Pay-as-you-go. PrePaid: Yearly/monthly subscription. Esi: Elastic reservation instance. Segmented: Time-based elastic reservation instance.
- instance
Name string - Instance name.
- instance
Type stringId - Instance specification
- keep
Image booleanCredential - Whether to retain image settings. Values: true: Retain image settings. If retained, the instance will use the preset password or key pair from the image for login. false (default): Do not retain image settings.
- key
Pair stringName - Key pair bound to the instance.
- network
Interfaces LaunchTemplate Launch Template Version Network Interface[] - project
Name string - Project associated with the instance.
- scheduled
Instance LaunchTemplate Launch Template Version Scheduled Instance - Elastic reservation order information
- security
Enhancement stringStrategy - Enable security hardening. Active: Enable security hardening, applies only to public images. InActive: Disable security hardening, applies to all images.
- spot
Price numberLimit - Maximum hourly price for preemptible instances
- spot
Strategy string - Preemptible strategy for pay-as-you-go billing. Options: NoSpot: Create a regular pay-as-you-go instance. SpotAsPriceGo: System automatically bids, follows the current market price for preemptible instances. SpotWithPriceLimit: Preemptible instance with a bid limit.
- suffix
Index number - Starting number for the sequential suffix
-
Launch
Template Launch Template Version Tag[] - unique
Suffix boolean - Indicates whether to automatically add sequential suffixes to Hostname and InstanceName when creating multiple instances
- user
Data string - Custom data for the instance.
- version
Description string - Template version description.
- volumes
Launch
Template Launch Template Version Volume[] - vpc
Id string - Private network ID.
- zone
Id string - Instance availability zone ID
- deployment_
set_ intgroup_ number - When the ECS instance needs to join or adjust the deployment set strategy to the deployment set group high availability strategy (AvailabilityGroup), you can use this parameter to specify the group number of the instance in the deployment set.
- deployment_
set_ strid - Deployment set ID the instance needs to join.
- description str
- Instance description
- eip
Launch
Template Launch Template Version Eip - Public IP information bound to the instance
- host_
name str - Instance hostname. For Linux, the hostname length must be 2–59 characters. For Windows, the hostname length must be 2–10 characters.
- hpc_
cluster_ strid - When creating a high-performance computing GPU instance, please specify the high-performance computing cluster ID.
- image_
id str - Image ID.
- image_
name str - Image name.
- instance_
charge_ strtype - Billing type for the instance and cloud disk. Options: PostPaid: Pay-as-you-go. PrePaid: Yearly/monthly subscription. Esi: Elastic reservation instance. Segmented: Time-based elastic reservation instance.
- instance_
name str - Instance name.
- instance_
type_ strid - Instance specification
- keep_
image_ boolcredential - Whether to retain image settings. Values: true: Retain image settings. If retained, the instance will use the preset password or key pair from the image for login. false (default): Do not retain image settings.
- key_
pair_ strname - Key pair bound to the instance.
- network_
interfaces Sequence[LaunchTemplate Launch Template Version Network Interface] - project_
name str - Project associated with the instance.
- scheduled_
instance LaunchTemplate Launch Template Version Scheduled Instance - Elastic reservation order information
- security_
enhancement_ strstrategy - Enable security hardening. Active: Enable security hardening, applies only to public images. InActive: Disable security hardening, applies to all images.
- spot_
price_ floatlimit - Maximum hourly price for preemptible instances
- spot_
strategy str - Preemptible strategy for pay-as-you-go billing. Options: NoSpot: Create a regular pay-as-you-go instance. SpotAsPriceGo: System automatically bids, follows the current market price for preemptible instances. SpotWithPriceLimit: Preemptible instance with a bid limit.
- suffix_
index int - Starting number for the sequential suffix
-
Sequence[Launch
Template Launch Template Version Tag] - unique_
suffix bool - Indicates whether to automatically add sequential suffixes to Hostname and InstanceName when creating multiple instances
- user_
data str - Custom data for the instance.
- version_
description str - Template version description.
- volumes
Sequence[Launch
Template Launch Template Version Volume] - vpc_
id str - Private network ID.
- zone_
id str - Instance availability zone ID
- deployment
Set NumberGroup Number - When the ECS instance needs to join or adjust the deployment set strategy to the deployment set group high availability strategy (AvailabilityGroup), you can use this parameter to specify the group number of the instance in the deployment set.
- deployment
Set StringId - Deployment set ID the instance needs to join.
- description String
- Instance description
- eip Property Map
- Public IP information bound to the instance
- host
Name String - Instance hostname. For Linux, the hostname length must be 2–59 characters. For Windows, the hostname length must be 2–10 characters.
- hpc
Cluster StringId - When creating a high-performance computing GPU instance, please specify the high-performance computing cluster ID.
- image
Id String - Image ID.
- image
Name String - Image name.
- instance
Charge StringType - Billing type for the instance and cloud disk. Options: PostPaid: Pay-as-you-go. PrePaid: Yearly/monthly subscription. Esi: Elastic reservation instance. Segmented: Time-based elastic reservation instance.
- instance
Name String - Instance name.
- instance
Type StringId - Instance specification
- keep
Image BooleanCredential - Whether to retain image settings. Values: true: Retain image settings. If retained, the instance will use the preset password or key pair from the image for login. false (default): Do not retain image settings.
- key
Pair StringName - Key pair bound to the instance.
- network
Interfaces List<Property Map> - project
Name String - Project associated with the instance.
- scheduled
Instance Property Map - Elastic reservation order information
- security
Enhancement StringStrategy - Enable security hardening. Active: Enable security hardening, applies only to public images. InActive: Disable security hardening, applies to all images.
- spot
Price NumberLimit - Maximum hourly price for preemptible instances
- spot
Strategy String - Preemptible strategy for pay-as-you-go billing. Options: NoSpot: Create a regular pay-as-you-go instance. SpotAsPriceGo: System automatically bids, follows the current market price for preemptible instances. SpotWithPriceLimit: Preemptible instance with a bid limit.
- suffix
Index Number - Starting number for the sequential suffix
- List<Property Map>
- unique
Suffix Boolean - Indicates whether to automatically add sequential suffixes to Hostname and InstanceName when creating multiple instances
- user
Data String - Custom data for the instance.
- version
Description String - Template version description.
- volumes List<Property Map>
- vpc
Id String - Private network ID.
- zone
Id String - Instance availability zone ID
LaunchTemplateLaunchTemplateVersionEip, LaunchTemplateLaunchTemplateVersionEipArgs
- Bandwidth int
- Public IP bandwidth cap, unit: Mbps. Value range: 1–200. Default: 1.
- Bandwidth
Package stringId - Shared bandwidth package ID, indicates adding the public IP to the shared bandwidth package.
- Billing
Type int - Billing method for public IP. Values: 2: Pay-as-you-go—by bandwidth cap. 3: Pay-as-you-go—by actual traffic.
- Isp string
- Line type for the public IP. Options: BGP: BGP (multi-line). ChinaMobile: China Mobile static single line. ChinaTelecom: China Telecom static single line. ChinaUnicom: China Unicom static single line.
- Release
With boolInstance - Whether the public IP is released with the instance; only applies to pay-as-you-go public IPs
- Security
Protection intInstance Id - Security protection package ID
- Security
Protection List<string>Types - Security protection type for public IP. Value: AntiDDoS_Enhanced: Apply for a public IP with enhanced protection, which can be added to a DDoS Native Protection (Enterprise Edition) instance.
- Bandwidth int
- Public IP bandwidth cap, unit: Mbps. Value range: 1–200. Default: 1.
- Bandwidth
Package stringId - Shared bandwidth package ID, indicates adding the public IP to the shared bandwidth package.
- Billing
Type int - Billing method for public IP. Values: 2: Pay-as-you-go—by bandwidth cap. 3: Pay-as-you-go—by actual traffic.
- Isp string
- Line type for the public IP. Options: BGP: BGP (multi-line). ChinaMobile: China Mobile static single line. ChinaTelecom: China Telecom static single line. ChinaUnicom: China Unicom static single line.
- Release
With boolInstance - Whether the public IP is released with the instance; only applies to pay-as-you-go public IPs
- Security
Protection intInstance Id - Security protection package ID
- Security
Protection []stringTypes - Security protection type for public IP. Value: AntiDDoS_Enhanced: Apply for a public IP with enhanced protection, which can be added to a DDoS Native Protection (Enterprise Edition) instance.
- bandwidth Integer
- Public IP bandwidth cap, unit: Mbps. Value range: 1–200. Default: 1.
- bandwidth
Package StringId - Shared bandwidth package ID, indicates adding the public IP to the shared bandwidth package.
- billing
Type Integer - Billing method for public IP. Values: 2: Pay-as-you-go—by bandwidth cap. 3: Pay-as-you-go—by actual traffic.
- isp String
- Line type for the public IP. Options: BGP: BGP (multi-line). ChinaMobile: China Mobile static single line. ChinaTelecom: China Telecom static single line. ChinaUnicom: China Unicom static single line.
- release
With BooleanInstance - Whether the public IP is released with the instance; only applies to pay-as-you-go public IPs
- security
Protection IntegerInstance Id - Security protection package ID
- security
Protection List<String>Types - Security protection type for public IP. Value: AntiDDoS_Enhanced: Apply for a public IP with enhanced protection, which can be added to a DDoS Native Protection (Enterprise Edition) instance.
- bandwidth number
- Public IP bandwidth cap, unit: Mbps. Value range: 1–200. Default: 1.
- bandwidth
Package stringId - Shared bandwidth package ID, indicates adding the public IP to the shared bandwidth package.
- billing
Type number - Billing method for public IP. Values: 2: Pay-as-you-go—by bandwidth cap. 3: Pay-as-you-go—by actual traffic.
- isp string
- Line type for the public IP. Options: BGP: BGP (multi-line). ChinaMobile: China Mobile static single line. ChinaTelecom: China Telecom static single line. ChinaUnicom: China Unicom static single line.
- release
With booleanInstance - Whether the public IP is released with the instance; only applies to pay-as-you-go public IPs
- security
Protection numberInstance Id - Security protection package ID
- security
Protection string[]Types - Security protection type for public IP. Value: AntiDDoS_Enhanced: Apply for a public IP with enhanced protection, which can be added to a DDoS Native Protection (Enterprise Edition) instance.
- bandwidth int
- Public IP bandwidth cap, unit: Mbps. Value range: 1–200. Default: 1.
- bandwidth_
package_ strid - Shared bandwidth package ID, indicates adding the public IP to the shared bandwidth package.
- billing_
type int - Billing method for public IP. Values: 2: Pay-as-you-go—by bandwidth cap. 3: Pay-as-you-go—by actual traffic.
- isp str
- Line type for the public IP. Options: BGP: BGP (multi-line). ChinaMobile: China Mobile static single line. ChinaTelecom: China Telecom static single line. ChinaUnicom: China Unicom static single line.
- release_
with_ boolinstance - Whether the public IP is released with the instance; only applies to pay-as-you-go public IPs
- security_
protection_ intinstance_ id - Security protection package ID
- security_
protection_ Sequence[str]types - Security protection type for public IP. Value: AntiDDoS_Enhanced: Apply for a public IP with enhanced protection, which can be added to a DDoS Native Protection (Enterprise Edition) instance.
- bandwidth Number
- Public IP bandwidth cap, unit: Mbps. Value range: 1–200. Default: 1.
- bandwidth
Package StringId - Shared bandwidth package ID, indicates adding the public IP to the shared bandwidth package.
- billing
Type Number - Billing method for public IP. Values: 2: Pay-as-you-go—by bandwidth cap. 3: Pay-as-you-go—by actual traffic.
- isp String
- Line type for the public IP. Options: BGP: BGP (multi-line). ChinaMobile: China Mobile static single line. ChinaTelecom: China Telecom static single line. ChinaUnicom: China Unicom static single line.
- release
With BooleanInstance - Whether the public IP is released with the instance; only applies to pay-as-you-go public IPs
- security
Protection NumberInstance Id - Security protection package ID
- security
Protection List<String>Types - Security protection type for public IP. Value: AntiDDoS_Enhanced: Apply for a public IP with enhanced protection, which can be added to a DDoS Native Protection (Enterprise Edition) instance.
LaunchTemplateLaunchTemplateVersionNetworkInterface, LaunchTemplateLaunchTemplateVersionNetworkInterfaceArgs
- Security
Group List<string>Ids - Security group ID associated with the network interface.
- Subnet
Id string - Instance VPC subnet ID
- Security
Group []stringIds - Security group ID associated with the network interface.
- Subnet
Id string - Instance VPC subnet ID
- security
Group List<String>Ids - Security group ID associated with the network interface.
- subnet
Id String - Instance VPC subnet ID
- security
Group string[]Ids - Security group ID associated with the network interface.
- subnet
Id string - Instance VPC subnet ID
- security_
group_ Sequence[str]ids - Security group ID associated with the network interface.
- subnet_
id str - Instance VPC subnet ID
- security
Group List<String>Ids - Security group ID associated with the network interface.
- subnet
Id String - Instance VPC subnet ID
LaunchTemplateLaunchTemplateVersionScheduledInstance, LaunchTemplateLaunchTemplateVersionScheduledInstanceArgs
- Scheduled
Instance stringDescription - Description of the elastic reservation order
- Scheduled
Instance stringName - Name of the elastic reservation order
- Scheduled
Instance stringDescription - Description of the elastic reservation order
- Scheduled
Instance stringName - Name of the elastic reservation order
- scheduled
Instance StringDescription - Description of the elastic reservation order
- scheduled
Instance StringName - Name of the elastic reservation order
- scheduled
Instance stringDescription - Description of the elastic reservation order
- scheduled
Instance stringName - Name of the elastic reservation order
- scheduled_
instance_ strdescription - Description of the elastic reservation order
- scheduled_
instance_ strname - Name of the elastic reservation order
- scheduled
Instance StringDescription - Description of the elastic reservation order
- scheduled
Instance StringName - Name of the elastic reservation order
LaunchTemplateLaunchTemplateVersionTag, LaunchTemplateLaunchTemplateVersionTagArgs
LaunchTemplateLaunchTemplateVersionVolume, LaunchTemplateLaunchTemplateVersionVolumeArgs
- Delete
With boolInstance - Whether the cloud disk is released with the instance
- Extra
Performance intIops - Cloud disk extra IOPS performance size, supported only by ESSD FlexPL data disks, unit: operations/second. This parameter must be set when ExtraPerformanceTypeId is Balance or IOPS. The value ranges for each extra performance type are as follows: IOPS type: 1–50000. Balance type: 1–50000.
- Extra
Performance intThroughput Mb - Extra throughput performance size for the cloud disk, in MB/s. Only supported by ESSD FlexPL data disks. This parameter must be set when ExtraPerformanceTypeId is Throughput. Value range: 1–650.
- Extra
Performance stringType Id - Type of cloud disk extra performance, supported only by ESSD FlexPL data disks. For more information about extra performance, see Cloud Disk Extra Performance. Values: Balance: Balanced extra performance. IOPS: IOPS extra performance. Throughput: Throughput extra performance.
- Size int
- Cloud disk size, unit: GB. System disk: ESSDPL0: 20–2048, PTSSD: 10–500. Data disk: ESSDPL0: 10–32768, PTSSD: 20–8192
- Snapshot
Id string - Create a cloud disk using a snapshot, only supports creating data disks. You can call the DescribeSnapshots API to query the snapshot ID.
- Volume
Type string - Cloud disk type. ESSD_PL0: Ultra-fast SSD PL0. PTSSD: Performance SSD.
- Delete
With boolInstance - Whether the cloud disk is released with the instance
- Extra
Performance intIops - Cloud disk extra IOPS performance size, supported only by ESSD FlexPL data disks, unit: operations/second. This parameter must be set when ExtraPerformanceTypeId is Balance or IOPS. The value ranges for each extra performance type are as follows: IOPS type: 1–50000. Balance type: 1–50000.
- Extra
Performance intThroughput Mb - Extra throughput performance size for the cloud disk, in MB/s. Only supported by ESSD FlexPL data disks. This parameter must be set when ExtraPerformanceTypeId is Throughput. Value range: 1–650.
- Extra
Performance stringType Id - Type of cloud disk extra performance, supported only by ESSD FlexPL data disks. For more information about extra performance, see Cloud Disk Extra Performance. Values: Balance: Balanced extra performance. IOPS: IOPS extra performance. Throughput: Throughput extra performance.
- Size int
- Cloud disk size, unit: GB. System disk: ESSDPL0: 20–2048, PTSSD: 10–500. Data disk: ESSDPL0: 10–32768, PTSSD: 20–8192
- Snapshot
Id string - Create a cloud disk using a snapshot, only supports creating data disks. You can call the DescribeSnapshots API to query the snapshot ID.
- Volume
Type string - Cloud disk type. ESSD_PL0: Ultra-fast SSD PL0. PTSSD: Performance SSD.
- delete
With BooleanInstance - Whether the cloud disk is released with the instance
- extra
Performance IntegerIops - Cloud disk extra IOPS performance size, supported only by ESSD FlexPL data disks, unit: operations/second. This parameter must be set when ExtraPerformanceTypeId is Balance or IOPS. The value ranges for each extra performance type are as follows: IOPS type: 1–50000. Balance type: 1–50000.
- extra
Performance IntegerThroughput Mb - Extra throughput performance size for the cloud disk, in MB/s. Only supported by ESSD FlexPL data disks. This parameter must be set when ExtraPerformanceTypeId is Throughput. Value range: 1–650.
- extra
Performance StringType Id - Type of cloud disk extra performance, supported only by ESSD FlexPL data disks. For more information about extra performance, see Cloud Disk Extra Performance. Values: Balance: Balanced extra performance. IOPS: IOPS extra performance. Throughput: Throughput extra performance.
- size Integer
- Cloud disk size, unit: GB. System disk: ESSDPL0: 20–2048, PTSSD: 10–500. Data disk: ESSDPL0: 10–32768, PTSSD: 20–8192
- snapshot
Id String - Create a cloud disk using a snapshot, only supports creating data disks. You can call the DescribeSnapshots API to query the snapshot ID.
- volume
Type String - Cloud disk type. ESSD_PL0: Ultra-fast SSD PL0. PTSSD: Performance SSD.
- delete
With booleanInstance - Whether the cloud disk is released with the instance
- extra
Performance numberIops - Cloud disk extra IOPS performance size, supported only by ESSD FlexPL data disks, unit: operations/second. This parameter must be set when ExtraPerformanceTypeId is Balance or IOPS. The value ranges for each extra performance type are as follows: IOPS type: 1–50000. Balance type: 1–50000.
- extra
Performance numberThroughput Mb - Extra throughput performance size for the cloud disk, in MB/s. Only supported by ESSD FlexPL data disks. This parameter must be set when ExtraPerformanceTypeId is Throughput. Value range: 1–650.
- extra
Performance stringType Id - Type of cloud disk extra performance, supported only by ESSD FlexPL data disks. For more information about extra performance, see Cloud Disk Extra Performance. Values: Balance: Balanced extra performance. IOPS: IOPS extra performance. Throughput: Throughput extra performance.
- size number
- Cloud disk size, unit: GB. System disk: ESSDPL0: 20–2048, PTSSD: 10–500. Data disk: ESSDPL0: 10–32768, PTSSD: 20–8192
- snapshot
Id string - Create a cloud disk using a snapshot, only supports creating data disks. You can call the DescribeSnapshots API to query the snapshot ID.
- volume
Type string - Cloud disk type. ESSD_PL0: Ultra-fast SSD PL0. PTSSD: Performance SSD.
- delete_
with_ boolinstance - Whether the cloud disk is released with the instance
- extra_
performance_ intiops - Cloud disk extra IOPS performance size, supported only by ESSD FlexPL data disks, unit: operations/second. This parameter must be set when ExtraPerformanceTypeId is Balance or IOPS. The value ranges for each extra performance type are as follows: IOPS type: 1–50000. Balance type: 1–50000.
- extra_
performance_ intthroughput_ mb - Extra throughput performance size for the cloud disk, in MB/s. Only supported by ESSD FlexPL data disks. This parameter must be set when ExtraPerformanceTypeId is Throughput. Value range: 1–650.
- extra_
performance_ strtype_ id - Type of cloud disk extra performance, supported only by ESSD FlexPL data disks. For more information about extra performance, see Cloud Disk Extra Performance. Values: Balance: Balanced extra performance. IOPS: IOPS extra performance. Throughput: Throughput extra performance.
- size int
- Cloud disk size, unit: GB. System disk: ESSDPL0: 20–2048, PTSSD: 10–500. Data disk: ESSDPL0: 10–32768, PTSSD: 20–8192
- snapshot_
id str - Create a cloud disk using a snapshot, only supports creating data disks. You can call the DescribeSnapshots API to query the snapshot ID.
- volume_
type str - Cloud disk type. ESSD_PL0: Ultra-fast SSD PL0. PTSSD: Performance SSD.
- delete
With BooleanInstance - Whether the cloud disk is released with the instance
- extra
Performance NumberIops - Cloud disk extra IOPS performance size, supported only by ESSD FlexPL data disks, unit: operations/second. This parameter must be set when ExtraPerformanceTypeId is Balance or IOPS. The value ranges for each extra performance type are as follows: IOPS type: 1–50000. Balance type: 1–50000.
- extra
Performance NumberThroughput Mb - Extra throughput performance size for the cloud disk, in MB/s. Only supported by ESSD FlexPL data disks. This parameter must be set when ExtraPerformanceTypeId is Throughput. Value range: 1–650.
- extra
Performance StringType Id - Type of cloud disk extra performance, supported only by ESSD FlexPL data disks. For more information about extra performance, see Cloud Disk Extra Performance. Values: Balance: Balanced extra performance. IOPS: IOPS extra performance. Throughput: Throughput extra performance.
- size Number
- Cloud disk size, unit: GB. System disk: ESSDPL0: 20–2048, PTSSD: 10–500. Data disk: ESSDPL0: 10–32768, PTSSD: 20–8192
- snapshot
Id String - Create a cloud disk using a snapshot, only supports creating data disks. You can call the DescribeSnapshots API to query the snapshot ID.
- volume
Type String - Cloud disk type. ESSD_PL0: Ultra-fast SSD PL0. PTSSD: Performance SSD.
Import
$ pulumi import volcenginecc:ecs/launchTemplate:LaunchTemplate example "launch_template_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
