LaunchTemplate
Provides an ECS Launch Template resource.
For information about Launch Template and how to use it, see Launch Template.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var images = Output.Create(AliCloud.Ecs.GetImages.InvokeAsync(new AliCloud.Ecs.GetImagesArgs
{
Owners = "system",
}));
var instances = Output.Create(AliCloud.Ecs.GetInstances.InvokeAsync());
var template = new AliCloud.Ecs.LaunchTemplate("template", new AliCloud.Ecs.LaunchTemplateArgs
{
DataDisks =
{
new AliCloud.Ecs.Inputs.LaunchTemplateDataDiskArgs
{
Description = "test1",
Name = "disk1",
},
new AliCloud.Ecs.Inputs.LaunchTemplateDataDiskArgs
{
Description = "test2",
Name = "disk2",
},
},
Description = "test1",
HostName = "tf-test-host",
ImageId = images.Apply(images => images.Images[0].Id),
InstanceChargeType = "PrePaid",
InstanceName = "tf-instance-name",
InstanceType = instances.Apply(instances => instances.Instances[0].InstanceType),
InternetChargeType = "PayByBandwidth",
InternetMaxBandwidthIn = 5,
InternetMaxBandwidthOut = 0,
IoOptimized = "none",
KeyPairName = "test-key-pair",
NetworkInterfaces = new AliCloud.Ecs.Inputs.LaunchTemplateNetworkInterfacesArgs
{
Description = "hello1",
Name = "eth0",
PrimaryIp = "10.0.0.2",
SecurityGroupId = "xxxx",
VswitchId = "xxxxxxx",
},
NetworkType = "vpc",
RamRoleName = "xxxxx",
ResourceGroupId = "rg-zkdfjahg9zxncv0",
SecurityEnhancementStrategy = "Active",
SecurityGroupId = "sg-zxcvj0lasdf102350asdf9a",
SpotPriceLimit = 5,
SpotStrategy = "SpotWithPriceLimit",
SystemDiskCategory = "cloud_ssd",
SystemDiskDescription = "test disk",
SystemDiskName = "hello",
SystemDiskSize = 40,
Tags =
{
{ "tag1", "hello" },
{ "tag2", "world" },
},
Userdata = "xxxxxxxxxxxxxx",
VpcId = "vpc-asdfnbg0as8dfk1nb2",
VswitchId = "sw-ljkngaksdjfj0nnasdf",
ZoneId = "beijing-a",
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
images = alicloud.ecs.get_images(owners="system")
instances = alicloud.ecs.get_instances()
template = alicloud.ecs.LaunchTemplate("template",
data_disks=[
{
"description": "test1",
"name": "disk1",
},
{
"description": "test2",
"name": "disk2",
},
],
description="test1",
host_name="tf-test-host",
image_id=images.images[0]["id"],
instance_charge_type="PrePaid",
instance_name="tf-instance-name",
instance_type=instances.instances[0]["instance_type"],
internet_charge_type="PayByBandwidth",
internet_max_bandwidth_in=5,
internet_max_bandwidth_out=0,
io_optimized="none",
key_pair_name="test-key-pair",
network_interfaces={
"description": "hello1",
"name": "eth0",
"primaryIp": "10.0.0.2",
"security_group_id": "xxxx",
"vswitch_id": "xxxxxxx",
},
network_type="vpc",
ram_role_name="xxxxx",
resource_group_id="rg-zkdfjahg9zxncv0",
security_enhancement_strategy="Active",
security_group_id="sg-zxcvj0lasdf102350asdf9a",
spot_price_limit=5,
spot_strategy="SpotWithPriceLimit",
system_disk_category="cloud_ssd",
system_disk_description="test disk",
system_disk_name="hello",
system_disk_size=40,
tags={
"tag1": "hello",
"tag2": "world",
},
userdata="xxxxxxxxxxxxxx",
vpc_id="vpc-asdfnbg0as8dfk1nb2",
vswitch_id="sw-ljkngaksdjfj0nnasdf",
zone_id="beijing-a")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const images = pulumi.output(alicloud.ecs.getImages({
owners: "system",
}, { async: true }));
const instances = pulumi.output(alicloud.ecs.getInstances({ async: true }));
const template = new alicloud.ecs.LaunchTemplate("template", {
dataDisks: [
{
description: "test1",
name: "disk1",
},
{
description: "test2",
name: "disk2",
},
],
description: "test1",
hostName: "tf-test-host",
imageId: images.images[0].id,
instanceChargeType: "PrePaid",
instanceName: "tf-instance-name",
instanceType: instances.instances[0].instanceType,
internetChargeType: "PayByBandwidth",
internetMaxBandwidthIn: 5,
internetMaxBandwidthOut: 0,
ioOptimized: "none",
keyPairName: "test-key-pair",
networkInterfaces: {
description: "hello1",
name: "eth0",
primaryIp: "10.0.0.2",
securityGroupId: "xxxx",
vswitchId: "xxxxxxx",
},
networkType: "vpc",
ramRoleName: "xxxxx",
resourceGroupId: "rg-zkdfjahg9zxncv0",
securityEnhancementStrategy: "Active",
securityGroupId: "sg-zxcvj0lasdf102350asdf9a",
spotPriceLimit: 5,
spotStrategy: "SpotWithPriceLimit",
systemDiskCategory: "cloud_ssd",
systemDiskDescription: "test disk",
systemDiskName: "hello",
systemDiskSize: 40,
tags: {
tag1: "hello",
tag2: "world",
},
userdata: "xxxxxxxxxxxxxx",
vpcId: "vpc-asdfnbg0as8dfk1nb2",
vswitchId: "sw-ljkngaksdjfj0nnasdf",
zoneId: "beijing-a",
});Create a LaunchTemplate Resource
new LaunchTemplate(name: string, args?: LaunchTemplateArgs, opts?: CustomResourceOptions);def LaunchTemplate(resource_name, opts=None, auto_release_time=None, data_disks=None, description=None, host_name=None, image_id=None, image_owner_alias=None, instance_charge_type=None, instance_name=None, instance_type=None, internet_charge_type=None, internet_max_bandwidth_in=None, internet_max_bandwidth_out=None, io_optimized=None, key_pair_name=None, name=None, network_interfaces=None, network_type=None, ram_role_name=None, resource_group_id=None, security_enhancement_strategy=None, security_group_id=None, spot_price_limit=None, spot_strategy=None, system_disk_category=None, system_disk_description=None, system_disk_name=None, system_disk_size=None, tags=None, userdata=None, vpc_id=None, vswitch_id=None, zone_id=None, __props__=None);func NewLaunchTemplate(ctx *Context, name string, args *LaunchTemplateArgs, opts ...ResourceOption) (*LaunchTemplate, error)public LaunchTemplate(string name, LaunchTemplateArgs? args = null, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
LaunchTemplate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The LaunchTemplate resource accepts the following input properties:
- Auto
Release stringTime Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
- Data
Disks List<Pulumi.Ali Cloud. Ecs. Inputs. Launch Template Data Disk Args> The list of data disks created with instance.
- Description string
The description of the data disk.
- Host
Name string Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
- Image
Id string Image ID.
- Image
Owner stringAlias - Instance
Charge stringType Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.
- Instance
Name string The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- Instance
Type string Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.
- Internet
Charge stringType Internet bandwidth billing method. Optional values:
PayByTraffic|PayByBandwidth.- Internet
Max intBandwidth In The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
- Internet
Max intBandwidth Out Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
- Io
Optimized string Whether it is an I/O-optimized instance or not. Optional values: - none - optimized
- Key
Pair stringName The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.
- Name string
The name of the data disk.
- Network
Interfaces Pulumi.Ali Cloud. Ecs. Inputs. Launch Template Network Interfaces Args The list of network interfaces created with instance.
- Network
Type string Network type of the instance. Value options:
classic|vpc.- Ram
Role stringName The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
- Resource
Group stringId - Security
Enhancement stringStrategy Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
- Security
Group stringId The security group ID must be one in the same VPC.
- Spot
Price doubleLimit -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
- Spot
Strategy string The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
- System
Disk stringCategory The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- System
Disk stringDescription System disk description. It cannot begin with http:// or https://.
- System
Disk stringName System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- System
Disk intSize Size of the system disk, measured in GB. Value range: [20, 500].
- Dictionary<string, object>
A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.
- Userdata string
User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
- Vpc
Id string - Vswitch
Id string The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
- Zone
Id string The zone ID of the instance.
- Auto
Release stringTime Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
- Data
Disks []LaunchTemplate Data Disk The list of data disks created with instance.
- Description string
The description of the data disk.
- Host
Name string Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
- Image
Id string Image ID.
- Image
Owner stringAlias - Instance
Charge stringType Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.
- Instance
Name string The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- Instance
Type string Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.
- Internet
Charge stringType Internet bandwidth billing method. Optional values:
PayByTraffic|PayByBandwidth.- Internet
Max intBandwidth In The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
- Internet
Max intBandwidth Out Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
- Io
Optimized string Whether it is an I/O-optimized instance or not. Optional values: - none - optimized
- Key
Pair stringName The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.
- Name string
The name of the data disk.
- Network
Interfaces LaunchTemplate Network Interfaces The list of network interfaces created with instance.
- Network
Type string Network type of the instance. Value options:
classic|vpc.- Ram
Role stringName The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
- Resource
Group stringId - Security
Enhancement stringStrategy Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
- Security
Group stringId The security group ID must be one in the same VPC.
- Spot
Price float64Limit -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
- Spot
Strategy string The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
- System
Disk stringCategory The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- System
Disk stringDescription System disk description. It cannot begin with http:// or https://.
- System
Disk stringName System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- System
Disk intSize Size of the system disk, measured in GB. Value range: [20, 500].
- map[string]interface{}
A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.
- Userdata string
User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
- Vpc
Id string - Vswitch
Id string The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
- Zone
Id string The zone ID of the instance.
- auto
Release stringTime Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
- data
Disks LaunchTemplate Data Disk[] The list of data disks created with instance.
- description string
The description of the data disk.
- host
Name string Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
- image
Id string Image ID.
- image
Owner stringAlias - instance
Charge stringType Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.
- instance
Name string The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- instance
Type string Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.
- internet
Charge stringType Internet bandwidth billing method. Optional values:
PayByTraffic|PayByBandwidth.- internet
Max numberBandwidth In The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
- internet
Max numberBandwidth Out Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
- io
Optimized string Whether it is an I/O-optimized instance or not. Optional values: - none - optimized
- key
Pair stringName The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.
- name string
The name of the data disk.
- network
Interfaces LaunchTemplate Network Interfaces The list of network interfaces created with instance.
- network
Type string Network type of the instance. Value options:
classic|vpc.- ram
Role stringName The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
- resource
Group stringId - security
Enhancement stringStrategy Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
- security
Group stringId The security group ID must be one in the same VPC.
- spot
Price numberLimit -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
- spot
Strategy string The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
- system
Disk stringCategory The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- system
Disk stringDescription System disk description. It cannot begin with http:// or https://.
- system
Disk stringName System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- system
Disk numberSize Size of the system disk, measured in GB. Value range: [20, 500].
- {[key: string]: any}
A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.
- userdata string
User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
- vpc
Id string - vswitch
Id string The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
- zone
Id string The zone ID of the instance.
- auto_
release_ strtime Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
- data_
disks List[LaunchTemplate Data Disk] The list of data disks created with instance.
- description str
The description of the data disk.
- host_
name str Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
- image_
id str Image ID.
- image_
owner_ stralias - instance_
charge_ strtype Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.
- instance_
name str The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- instance_
type str Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.
- internet_
charge_ strtype Internet bandwidth billing method. Optional values:
PayByTraffic|PayByBandwidth.- internet_
max_ floatbandwidth_ in The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
- internet_
max_ floatbandwidth_ out Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
- io_
optimized str Whether it is an I/O-optimized instance or not. Optional values: - none - optimized
- key_
pair_ strname The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.
- name str
The name of the data disk.
- network_
interfaces Dict[LaunchTemplate Network Interfaces] The list of network interfaces created with instance.
- network_
type str Network type of the instance. Value options:
classic|vpc.- ram_
role_ strname The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
- resource_
group_ strid - security_
enhancement_ strstrategy Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
- security_
group_ strid The security group ID must be one in the same VPC.
- spot_
price_ floatlimit -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
- spot_
strategy str The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
- system_
disk_ strcategory The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- system_
disk_ strdescription System disk description. It cannot begin with http:// or https://.
- system_
disk_ strname System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- system_
disk_ floatsize Size of the system disk, measured in GB. Value range: [20, 500].
- Dict[str, Any]
A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.
- userdata str
User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
- vpc_
id str - vswitch_
id str The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
- zone_
id str The zone ID of the instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the LaunchTemplate resource produces the following output properties:
Look up an 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): LaunchTemplatestatic get(resource_name, id, opts=None, auto_release_time=None, data_disks=None, description=None, host_name=None, image_id=None, image_owner_alias=None, instance_charge_type=None, instance_name=None, instance_type=None, internet_charge_type=None, internet_max_bandwidth_in=None, internet_max_bandwidth_out=None, io_optimized=None, key_pair_name=None, name=None, network_interfaces=None, network_type=None, ram_role_name=None, resource_group_id=None, security_enhancement_strategy=None, security_group_id=None, spot_price_limit=None, spot_strategy=None, system_disk_category=None, system_disk_description=None, system_disk_name=None, system_disk_size=None, tags=None, userdata=None, vpc_id=None, vswitch_id=None, zone_id=None, __props__=None);func 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)- 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.
The following state arguments are supported:
- Auto
Release stringTime Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
- Data
Disks List<Pulumi.Ali Cloud. Ecs. Inputs. Launch Template Data Disk Args> The list of data disks created with instance.
- Description string
The description of the data disk.
- Host
Name string Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
- Image
Id string Image ID.
- Image
Owner stringAlias - Instance
Charge stringType Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.
- Instance
Name string The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- Instance
Type string Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.
- Internet
Charge stringType Internet bandwidth billing method. Optional values:
PayByTraffic|PayByBandwidth.- Internet
Max intBandwidth In The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
- Internet
Max intBandwidth Out Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
- Io
Optimized string Whether it is an I/O-optimized instance or not. Optional values: - none - optimized
- Key
Pair stringName The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.
- Name string
The name of the data disk.
- Network
Interfaces Pulumi.Ali Cloud. Ecs. Inputs. Launch Template Network Interfaces Args The list of network interfaces created with instance.
- Network
Type string Network type of the instance. Value options:
classic|vpc.- Ram
Role stringName The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
- Resource
Group stringId - Security
Enhancement stringStrategy Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
- Security
Group stringId The security group ID must be one in the same VPC.
- Spot
Price doubleLimit -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
- Spot
Strategy string The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
- System
Disk stringCategory The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- System
Disk stringDescription System disk description. It cannot begin with http:// or https://.
- System
Disk stringName System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- System
Disk intSize Size of the system disk, measured in GB. Value range: [20, 500].
- Dictionary<string, object>
A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.
- Userdata string
User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
- Vpc
Id string - Vswitch
Id string The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
- Zone
Id string The zone ID of the instance.
- Auto
Release stringTime Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
- Data
Disks []LaunchTemplate Data Disk The list of data disks created with instance.
- Description string
The description of the data disk.
- Host
Name string Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
- Image
Id string Image ID.
- Image
Owner stringAlias - Instance
Charge stringType Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.
- Instance
Name string The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- Instance
Type string Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.
- Internet
Charge stringType Internet bandwidth billing method. Optional values:
PayByTraffic|PayByBandwidth.- Internet
Max intBandwidth In The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
- Internet
Max intBandwidth Out Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
- Io
Optimized string Whether it is an I/O-optimized instance or not. Optional values: - none - optimized
- Key
Pair stringName The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.
- Name string
The name of the data disk.
- Network
Interfaces LaunchTemplate Network Interfaces The list of network interfaces created with instance.
- Network
Type string Network type of the instance. Value options:
classic|vpc.- Ram
Role stringName The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
- Resource
Group stringId - Security
Enhancement stringStrategy Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
- Security
Group stringId The security group ID must be one in the same VPC.
- Spot
Price float64Limit -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
- Spot
Strategy string The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
- System
Disk stringCategory The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- System
Disk stringDescription System disk description. It cannot begin with http:// or https://.
- System
Disk stringName System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- System
Disk intSize Size of the system disk, measured in GB. Value range: [20, 500].
- map[string]interface{}
A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.
- Userdata string
User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
- Vpc
Id string - Vswitch
Id string The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
- Zone
Id string The zone ID of the instance.
- auto
Release stringTime Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
- data
Disks LaunchTemplate Data Disk[] The list of data disks created with instance.
- description string
The description of the data disk.
- host
Name string Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
- image
Id string Image ID.
- image
Owner stringAlias - instance
Charge stringType Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.
- instance
Name string The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- instance
Type string Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.
- internet
Charge stringType Internet bandwidth billing method. Optional values:
PayByTraffic|PayByBandwidth.- internet
Max numberBandwidth In The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
- internet
Max numberBandwidth Out Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
- io
Optimized string Whether it is an I/O-optimized instance or not. Optional values: - none - optimized
- key
Pair stringName The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.
- name string
The name of the data disk.
- network
Interfaces LaunchTemplate Network Interfaces The list of network interfaces created with instance.
- network
Type string Network type of the instance. Value options:
classic|vpc.- ram
Role stringName The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
- resource
Group stringId - security
Enhancement stringStrategy Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
- security
Group stringId The security group ID must be one in the same VPC.
- spot
Price numberLimit -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
- spot
Strategy string The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
- system
Disk stringCategory The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- system
Disk stringDescription System disk description. It cannot begin with http:// or https://.
- system
Disk stringName System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- system
Disk numberSize Size of the system disk, measured in GB. Value range: [20, 500].
- {[key: string]: any}
A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.
- userdata string
User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
- vpc
Id string - vswitch
Id string The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
- zone
Id string The zone ID of the instance.
- auto_
release_ strtime Instance auto release time. The time is presented using the ISO8601 standard and in UTC time. The format is YYYY-MM-DDTHH:MM:SSZ.
- data_
disks List[LaunchTemplate Data Disk] The list of data disks created with instance.
- description str
The description of the data disk.
- host_
name str Instance host name.It cannot start or end with a period (.) or a hyphen (-) and it cannot have two or more consecutive periods (.) or hyphens (-).For Windows: The host name can be [2, 15] characters in length. It can contain A-Z, a-z, numbers, periods (.), and hyphens (-). It cannot only contain numbers. For other operating systems: The host name can be [2, 64] characters in length. It can be segments separated by periods (.). It can contain A-Z, a-z, numbers, and hyphens (-).
- image_
id str Image ID.
- image_
owner_ stralias - instance_
charge_ strtype Billing methods. Optional values: - PrePaid: Monthly, or annual subscription. Make sure that your registered credit card is invalid or you have insufficient balance in your PayPal account. Otherwise, InvalidPayMethod error may occur. - PostPaid: Pay-As-You-Go.
- instance_
name str The name of the instance. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- instance_
type str Instance type. For more information, call resource_alicloud_instances to obtain the latest instance type list.
- internet_
charge_ strtype Internet bandwidth billing method. Optional values:
PayByTraffic|PayByBandwidth.- internet_
max_ floatbandwidth_ in The maximum inbound bandwidth from the Internet network, measured in Mbit/s. Value range: [1, 200].
- internet_
max_ floatbandwidth_ out Maximum outbound bandwidth from the Internet, its unit of measurement is Mbit/s. Value range: [0, 100].
- io_
optimized str Whether it is an I/O-optimized instance or not. Optional values: - none - optimized
- key_
pair_ strname The name of the key pair. - Ignore this parameter for Windows instances. It is null by default. Even if you enter this parameter, only the Password content is used. - The password logon method for Linux instances is set to forbidden upon initialization.
- name str
The name of the data disk.
- network_
interfaces Dict[LaunchTemplate Network Interfaces] The list of network interfaces created with instance.
- network_
type str Network type of the instance. Value options:
classic|vpc.- ram_
role_ strname The RAM role name of the instance. You can use the RAM API ListRoles to query instance RAM role names.
- resource_
group_ strid - security_
enhancement_ strstrategy Whether or not to activate the security enhancement feature and install network security software free of charge. Optional values: Active | Deactive.
- security_
group_ strid The security group ID must be one in the same VPC.
- spot_
price_ floatlimit -(Optional) Sets the maximum hourly instance price. Supports up to three decimal places.
- spot_
strategy str The spot strategy for a Pay-As-You-Go instance. This parameter is valid and required only when InstanceChargeType is set to PostPaid. Value range: - NoSpot: Normal Pay-As-You-Go instance. - SpotWithPriceLimit: Sets the maximum price for a spot instance. - SpotAsPriceGo: The system automatically calculates the price. The maximum value is the Pay-As-You-Go price.
- system_
disk_ strcategory The category of the system disk. System disk type. Optional values: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- system_
disk_ strdescription System disk description. It cannot begin with http:// or https://.
- system_
disk_ strname System disk name. The name is a string of 2 to 128 characters. It must begin with an English or a Chinese character. It can contain A-Z, a-z, Chinese characters, numbers, periods (.), colons (:), underscores (_), and hyphens (-).
- system_
disk_ floatsize Size of the system disk, measured in GB. Value range: [20, 500].
- Dict[str, Any]
A mapping of tags to assign to the resource. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “acs:“, “http://“, or “https://“. It can be a null string.
- userdata str
User data of the instance, which is Base64-encoded. Size of the raw data cannot exceed 16 KB.
- vpc_
id str - vswitch_
id str The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
- zone_
id str The zone ID of the instance.
Supporting Types
LaunchTemplateDataDisk
- Category string
The category of the disk: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- Delete
With boolInstance Delete this data disk when the instance is destroyed. It only works on cloud, cloud_efficiency, cloud_ssd and cloud_essd disk. If the category of this data disk was ephemeral_ssd, please don’t set this param.
- Description string
The description of the data disk.
- Encrypted bool
-(Optional, Bool) Encrypted the data in this disk.
- Name string
The name of the data disk.
- Size int
The size of the data disk. - cloud:[5, 2000] - cloud_efficiency:[20, 32768] - cloud_ssd:[20, 32768] - cloud_essd:[20, 32768] - ephemeral_ssd: [5, 800]
- Snapshot
Id string The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
- Category string
The category of the disk: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- Delete
With boolInstance Delete this data disk when the instance is destroyed. It only works on cloud, cloud_efficiency, cloud_ssd and cloud_essd disk. If the category of this data disk was ephemeral_ssd, please don’t set this param.
- Description string
The description of the data disk.
- Encrypted bool
-(Optional, Bool) Encrypted the data in this disk.
- Name string
The name of the data disk.
- Size int
The size of the data disk. - cloud:[5, 2000] - cloud_efficiency:[20, 32768] - cloud_ssd:[20, 32768] - cloud_essd:[20, 32768] - ephemeral_ssd: [5, 800]
- Snapshot
Id string The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
- category string
The category of the disk: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- delete
With booleanInstance Delete this data disk when the instance is destroyed. It only works on cloud, cloud_efficiency, cloud_ssd and cloud_essd disk. If the category of this data disk was ephemeral_ssd, please don’t set this param.
- description string
The description of the data disk.
- encrypted boolean
-(Optional, Bool) Encrypted the data in this disk.
- name string
The name of the data disk.
- size number
The size of the data disk. - cloud:[5, 2000] - cloud_efficiency:[20, 32768] - cloud_ssd:[20, 32768] - cloud_essd:[20, 32768] - ephemeral_ssd: [5, 800]
- snapshot
Id string The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
- category str
The category of the disk: - cloud: Basic cloud disk. - cloud_efficiency: Ultra cloud disk. - cloud_ssd: SSD cloud Disks. - ephemeral_ssd: local SSD Disks - cloud_essd: ESSD cloud Disks.
- delete_
with_ boolinstance Delete this data disk when the instance is destroyed. It only works on cloud, cloud_efficiency, cloud_ssd and cloud_essd disk. If the category of this data disk was ephemeral_ssd, please don’t set this param.
- description str
The description of the data disk.
- encrypted bool
-(Optional, Bool) Encrypted the data in this disk.
- name str
The name of the data disk.
- size float
The size of the data disk. - cloud:[5, 2000] - cloud_efficiency:[20, 32768] - cloud_ssd:[20, 32768] - cloud_essd:[20, 32768] - ephemeral_ssd: [5, 800]
- snapshot_
id str The snapshot ID used to initialize the data disk. If the size specified by snapshot is greater that the size of the disk, use the size specified by snapshot as the size of the data disk.
LaunchTemplateNetworkInterfaces
- Description string
The description of the data disk.
- Name string
The name of the data disk.
- Primary
Ip string The primary private IP address of the ENI.
- Security
Group stringId The security group ID must be one in the same VPC.
- Vswitch
Id string The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
- Description string
The description of the data disk.
- Name string
The name of the data disk.
- Primary
Ip string The primary private IP address of the ENI.
- Security
Group stringId The security group ID must be one in the same VPC.
- Vswitch
Id string The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
- description string
The description of the data disk.
- name string
The name of the data disk.
- primary
Ip string The primary private IP address of the ENI.
- security
Group stringId The security group ID must be one in the same VPC.
- vswitch
Id string The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
- description str
The description of the data disk.
- name str
The name of the data disk.
- primary
Ip str The primary private IP address of the ENI.
- security_
group_ strid The security group ID must be one in the same VPC.
- vswitch_
id str The VSwitch ID for ENI. The instance must be in the same zone of the same VPC network as the ENI, but they may belong to different VSwitches.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.