alicloud.ecs.EcsInstanceSet
Provides a ECS Instance Set resource.
For information about ECS Instance Set and how to use it, see What is Instance Set.
NOTE: Available in v1.173.0+.
NOTE: This resource is used to batch create a group of instance resources with the same configuration. However, this resource is not recommended.
alicloud.ecs.Instance
is preferred.
NOTE: In the instances managed by this resource, names are automatically generated based on
instance_name
andunique_suffix
.
NOTE: Only
tags
support batch modification.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-testaccecsset";
var defaultZones = AliCloud.GetZones.Invoke(new()
{
AvailableDiskCategory = "cloud_efficiency",
AvailableResourceCreation = "VSwitch",
});
var defaultInstanceTypes = AliCloud.Ecs.GetInstanceTypes.Invoke(new()
{
AvailabilityZone = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
CpuCoreCount = 1,
MemorySize = 2,
});
var defaultImages = AliCloud.Ecs.GetImages.Invoke(new()
{
NameRegex = "^ubuntu_[0-9]+_[0-9]+_x64*",
MostRecent = true,
Owners = "system",
});
var defaultNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "default-NODELETING",
});
var defaultSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
{
VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new()
{
VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
});
var beijingK = new AliCloud.Ecs.EcsInstanceSet("beijingK", new()
{
Amount = 100,
ImageId = defaultImages.Apply(getImagesResult => getImagesResult.Images[0]?.Id),
InstanceType = defaultInstanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.Id),
InstanceName = name,
InstanceChargeType = "PostPaid",
SystemDiskPerformanceLevel = "PL0",
SystemDiskCategory = "cloud_essd",
SystemDiskSize = 200,
VswitchId = defaultSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
SecurityGroupIds = new[]
{
defaultSecurityGroup,
}.Select(__item => __item.Id).ToList(),
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
});
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetInstanceTypesArgs;
import com.pulumi.alicloud.ecs.inputs.GetImagesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.ecs.EcsInstanceSet;
import com.pulumi.alicloud.ecs.EcsInstanceSetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-testaccecsset");
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableDiskCategory("cloud_efficiency")
.availableResourceCreation("VSwitch")
.build());
final var defaultInstanceTypes = EcsFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.availabilityZone(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.cpuCoreCount(1)
.memorySize(2)
.build());
final var defaultImages = EcsFunctions.getImages(GetImagesArgs.builder()
.nameRegex("^ubuntu_[0-9]+_[0-9]+_x64*")
.mostRecent(true)
.owners("system")
.build());
final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("default-NODELETING")
.build());
final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.build());
var beijingK = new EcsInstanceSet("beijingK", EcsInstanceSetArgs.builder()
.amount(100)
.imageId(defaultImages.applyValue(getImagesResult -> getImagesResult.images()[0].id()))
.instanceType(defaultInstanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].id()))
.instanceName(name)
.instanceChargeType("PostPaid")
.systemDiskPerformanceLevel("PL0")
.systemDiskCategory("cloud_essd")
.systemDiskSize(200)
.vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
.securityGroupIds(defaultSecurityGroup.stream().map(element -> element.id()).collect(toList()))
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-testaccecsset"
default_zones = alicloud.get_zones(available_disk_category="cloud_efficiency",
available_resource_creation="VSwitch")
default_instance_types = alicloud.ecs.get_instance_types(availability_zone=default_zones.zones[0].id,
cpu_core_count=1,
memory_size=2)
default_images = alicloud.ecs.get_images(name_regex="^ubuntu_[0-9]+_[0-9]+_x64*",
most_recent=True,
owners="system")
default_networks = alicloud.vpc.get_networks(name_regex="default-NODELETING")
default_switches = alicloud.vpc.get_switches(vpc_id=default_networks.ids[0],
zone_id=default_zones.zones[0].id)
default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_networks.ids[0])
beijing_k = alicloud.ecs.EcsInstanceSet("beijingK",
amount=100,
image_id=default_images.images[0].id,
instance_type=default_instance_types.instance_types[0].id,
instance_name=name,
instance_charge_type="PostPaid",
system_disk_performance_level="PL0",
system_disk_category="cloud_essd",
system_disk_size=200,
vswitch_id=default_switches.ids[0],
security_group_ids=[__item.id for __item in [default_security_group]],
zone_id=default_zones.zones[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-testaccecsset";
const defaultZones = alicloud.getZones({
availableDiskCategory: "cloud_efficiency",
availableResourceCreation: "VSwitch",
});
const defaultInstanceTypes = defaultZones.then(defaultZones => alicloud.ecs.getInstanceTypes({
availabilityZone: defaultZones.zones?.[0]?.id,
cpuCoreCount: 1,
memorySize: 2,
}));
const defaultImages = alicloud.ecs.getImages({
nameRegex: "^ubuntu_[0-9]+_[0-9]+_x64*",
mostRecent: true,
owners: "system",
});
const defaultNetworks = alicloud.vpc.getNetworks({
nameRegex: "default-NODELETING",
});
const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
vpcId: defaultNetworks.ids?.[0],
zoneId: defaultZones.zones?.[0]?.id,
}));
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0])});
const beijingK = new alicloud.ecs.EcsInstanceSet("beijingK", {
amount: 100,
imageId: defaultImages.then(defaultImages => defaultImages.images?.[0]?.id),
instanceType: defaultInstanceTypes.then(defaultInstanceTypes => defaultInstanceTypes.instanceTypes?.[0]?.id),
instanceName: name,
instanceChargeType: "PostPaid",
systemDiskPerformanceLevel: "PL0",
systemDiskCategory: "cloud_essd",
systemDiskSize: 200,
vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
securityGroupIds: [defaultSecurityGroup].map(__item => __item.id),
zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
});
Coming soon!
Create EcsInstanceSet Resource
new EcsInstanceSet(name: string, args: EcsInstanceSetArgs, opts?: CustomResourceOptions);
@overload
def EcsInstanceSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
amount: Optional[int] = None,
auto_release_time: Optional[str] = None,
auto_renew: Optional[bool] = None,
auto_renew_period: Optional[int] = None,
boot_check_os_with_assistant: Optional[bool] = None,
data_disks: Optional[Sequence[EcsInstanceSetDataDiskArgs]] = None,
dedicated_host_id: Optional[str] = None,
deletion_protection: Optional[bool] = None,
deployment_set_id: Optional[str] = None,
description: Optional[str] = None,
exclude_instance_filter: Optional[EcsInstanceSetExcludeInstanceFilterArgs] = None,
host_name: Optional[str] = None,
hpc_cluster_id: Optional[str] = None,
image_id: Optional[str] = None,
instance_charge_type: Optional[str] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
internet_charge_type: Optional[str] = None,
internet_max_bandwidth_out: Optional[int] = None,
key_pair_name: Optional[str] = None,
launch_template_id: Optional[str] = None,
launch_template_name: Optional[str] = None,
launch_template_version: Optional[str] = None,
network_interfaces: Optional[Sequence[EcsInstanceSetNetworkInterfaceArgs]] = None,
password: Optional[str] = None,
password_inherit: Optional[bool] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
ram_role_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_enhancement_strategy: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
spot_price_limit: Optional[float] = None,
spot_strategy: Optional[str] = None,
system_disk_auto_snapshot_policy_id: Optional[str] = None,
system_disk_category: Optional[str] = None,
system_disk_description: Optional[str] = None,
system_disk_name: Optional[str] = None,
system_disk_performance_level: Optional[str] = None,
system_disk_size: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None,
unique_suffix: Optional[bool] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None)
@overload
def EcsInstanceSet(resource_name: str,
args: EcsInstanceSetArgs,
opts: Optional[ResourceOptions] = None)
func NewEcsInstanceSet(ctx *Context, name string, args EcsInstanceSetArgs, opts ...ResourceOption) (*EcsInstanceSet, error)
public EcsInstanceSet(string name, EcsInstanceSetArgs args, CustomResourceOptions? opts = null)
public EcsInstanceSet(String name, EcsInstanceSetArgs args)
public EcsInstanceSet(String name, EcsInstanceSetArgs args, CustomResourceOptions options)
type: alicloud:ecs:EcsInstanceSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EcsInstanceSetArgs
- 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 EcsInstanceSetArgs
- 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 EcsInstanceSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EcsInstanceSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EcsInstanceSetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
EcsInstanceSet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The EcsInstanceSet resource accepts the following input properties:
- Image
Id string The Image to use for the instance.
- Instance
Type string The type of instance to start.
- Security
Group List<string>Ids A list of security group ids to associate with.
- Amount int
The number of instances that you want to create. Valid values:
1
to100
.- Auto
Release stringTime The automatic release time of the
PostPaid
instance.- Auto
Renew bool Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- Auto
Renew intPeriod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Boot
Check boolOs With Assistant Indicate how to check instance ready to use.
- Data
Disks List<Pulumi.Ali Cloud. Ecs. Inputs. Ecs Instance Set Data Disk Args> The list of data disks created with instance. See the following
Block data_disks
.- Dedicated
Host stringId The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- Deletion
Protection bool Whether to enable release protection for the instance.
- Deployment
Set stringId The ID of the deployment set to which to deploy the instance.
- Description string
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- Exclude
Instance Pulumi.Filter Ali Cloud. Ecs. Inputs. Ecs Instance Set Exclude Instance Filter Args The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- Host
Name string The hostname of instance.
- Hpc
Cluster stringId The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- Instance
Charge stringType The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- Instance
Name string The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- Internet
Charge stringType The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- Internet
Max intBandwidth Out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- Key
Pair stringName The name of key pair that can login ECS instance successfully without password.
- Launch
Template stringId The ID of the launch template.
- Launch
Template stringName The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- Launch
Template stringVersion The version of the launch template.
- Network
Interfaces List<Pulumi.Ali Cloud. Ecs. Inputs. Ecs Instance Set Network Interface Args> A list of NetworkInterface. See the following
Block network_interfaces
.- Password string
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- Password
Inherit bool Whether to use the password preset in the image.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Period
Unit string The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- Ram
Role stringName The Instance RAM role name.
- Resource
Group stringId The ID of resource group which the instance belongs.
- Security
Enhancement stringStrategy The security enhancement strategy.
- Spot
Price doubleLimit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- Spot
Strategy string The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- System
Disk stringAuto Snapshot Policy Id The ID of the automatic snapshot policy applied to the system disk.
- System
Disk stringCategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- System
Disk stringDescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- System
Disk stringName The name of the system disk.
- System
Disk stringPerformance Level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- System
Disk intSize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Unique
Suffix bool Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- Vswitch
Id string The virtual switch ID to launch in VPC.
- Zone
Id string The ID of the zone in which to create the instance.
- Image
Id string The Image to use for the instance.
- Instance
Type string The type of instance to start.
- Security
Group []stringIds A list of security group ids to associate with.
- Amount int
The number of instances that you want to create. Valid values:
1
to100
.- Auto
Release stringTime The automatic release time of the
PostPaid
instance.- Auto
Renew bool Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- Auto
Renew intPeriod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Boot
Check boolOs With Assistant Indicate how to check instance ready to use.
- Data
Disks []EcsInstance Set Data Disk Args The list of data disks created with instance. See the following
Block data_disks
.- Dedicated
Host stringId The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- Deletion
Protection bool Whether to enable release protection for the instance.
- Deployment
Set stringId The ID of the deployment set to which to deploy the instance.
- Description string
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- Exclude
Instance EcsFilter Instance Set Exclude Instance Filter Args The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- Host
Name string The hostname of instance.
- Hpc
Cluster stringId The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- Instance
Charge stringType The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- Instance
Name string The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- Internet
Charge stringType The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- Internet
Max intBandwidth Out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- Key
Pair stringName The name of key pair that can login ECS instance successfully without password.
- Launch
Template stringId The ID of the launch template.
- Launch
Template stringName The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- Launch
Template stringVersion The version of the launch template.
- Network
Interfaces []EcsInstance Set Network Interface Args A list of NetworkInterface. See the following
Block network_interfaces
.- Password string
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- Password
Inherit bool Whether to use the password preset in the image.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Period
Unit string The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- Ram
Role stringName The Instance RAM role name.
- Resource
Group stringId The ID of resource group which the instance belongs.
- Security
Enhancement stringStrategy The security enhancement strategy.
- Spot
Price float64Limit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- Spot
Strategy string The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- System
Disk stringAuto Snapshot Policy Id The ID of the automatic snapshot policy applied to the system disk.
- System
Disk stringCategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- System
Disk stringDescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- System
Disk stringName The name of the system disk.
- System
Disk stringPerformance Level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- System
Disk intSize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- map[string]string
A mapping of tags to assign to the resource.
- Unique
Suffix bool Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- Vswitch
Id string The virtual switch ID to launch in VPC.
- Zone
Id string The ID of the zone in which to create the instance.
- image
Id String The Image to use for the instance.
- instance
Type String The type of instance to start.
- security
Group List<String>Ids A list of security group ids to associate with.
- amount Integer
The number of instances that you want to create. Valid values:
1
to100
.- auto
Release StringTime The automatic release time of the
PostPaid
instance.- auto
Renew Boolean Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- auto
Renew IntegerPeriod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check BooleanOs With Assistant Indicate how to check instance ready to use.
- data
Disks List<EcsInstance Set Data Disk Args> The list of data disks created with instance. See the following
Block data_disks
.- dedicated
Host StringId The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- deletion
Protection Boolean Whether to enable release protection for the instance.
- deployment
Set StringId The ID of the deployment set to which to deploy the instance.
- description String
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- exclude
Instance EcsFilter Instance Set Exclude Instance Filter Args The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- host
Name String The hostname of instance.
- hpc
Cluster StringId The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- instance
Charge StringType The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- instance
Name String The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- internet
Charge StringType The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- internet
Max IntegerBandwidth Out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- key
Pair StringName The name of key pair that can login ECS instance successfully without password.
- launch
Template StringId The ID of the launch template.
- launch
Template StringName The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- launch
Template StringVersion The version of the launch template.
- network
Interfaces List<EcsInstance Set Network Interface Args> A list of NetworkInterface. See the following
Block network_interfaces
.- password String
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit Boolean Whether to use the password preset in the image.
- period Integer
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit String The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- ram
Role StringName The Instance RAM role name.
- resource
Group StringId The ID of resource group which the instance belongs.
- security
Enhancement StringStrategy The security enhancement strategy.
- spot
Price DoubleLimit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy String The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- system
Disk StringAuto Snapshot Policy Id The ID of the automatic snapshot policy applied to the system disk.
- system
Disk StringCategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- system
Disk StringDescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- system
Disk StringName The name of the system disk.
- system
Disk StringPerformance Level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- system
Disk IntegerSize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- Map<String,String>
A mapping of tags to assign to the resource.
- unique
Suffix Boolean Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- vswitch
Id String The virtual switch ID to launch in VPC.
- zone
Id String The ID of the zone in which to create the instance.
- image
Id string The Image to use for the instance.
- instance
Type string The type of instance to start.
- security
Group string[]Ids A list of security group ids to associate with.
- amount number
The number of instances that you want to create. Valid values:
1
to100
.- auto
Release stringTime The automatic release time of the
PostPaid
instance.- auto
Renew boolean Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- auto
Renew numberPeriod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check booleanOs With Assistant Indicate how to check instance ready to use.
- data
Disks EcsInstance Set Data Disk Args[] The list of data disks created with instance. See the following
Block data_disks
.- dedicated
Host stringId The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- deletion
Protection boolean Whether to enable release protection for the instance.
- deployment
Set stringId The ID of the deployment set to which to deploy the instance.
- description string
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- exclude
Instance EcsFilter Instance Set Exclude Instance Filter Args The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- host
Name string The hostname of instance.
- hpc
Cluster stringId The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- instance
Charge stringType The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- instance
Name string The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- internet
Charge stringType The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- internet
Max numberBandwidth Out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- key
Pair stringName The name of key pair that can login ECS instance successfully without password.
- launch
Template stringId The ID of the launch template.
- launch
Template stringName The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- launch
Template stringVersion The version of the launch template.
- network
Interfaces EcsInstance Set Network Interface Args[] A list of NetworkInterface. See the following
Block network_interfaces
.- password string
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit boolean Whether to use the password preset in the image.
- period number
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit string The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- ram
Role stringName The Instance RAM role name.
- resource
Group stringId The ID of resource group which the instance belongs.
- security
Enhancement stringStrategy The security enhancement strategy.
- spot
Price numberLimit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy string The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- system
Disk stringAuto Snapshot Policy Id The ID of the automatic snapshot policy applied to the system disk.
- system
Disk stringCategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- system
Disk stringDescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- system
Disk stringName The name of the system disk.
- system
Disk stringPerformance Level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- system
Disk numberSize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- {[key: string]: string}
A mapping of tags to assign to the resource.
- unique
Suffix boolean Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- vswitch
Id string The virtual switch ID to launch in VPC.
- zone
Id string The ID of the zone in which to create the instance.
- image_
id str The Image to use for the instance.
- instance_
type str The type of instance to start.
- security_
group_ Sequence[str]ids A list of security group ids to associate with.
- amount int
The number of instances that you want to create. Valid values:
1
to100
.- auto_
release_ strtime The automatic release time of the
PostPaid
instance.- auto_
renew bool Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- auto_
renew_ intperiod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot_
check_ boolos_ with_ assistant Indicate how to check instance ready to use.
- data_
disks Sequence[EcsInstance Set Data Disk Args] The list of data disks created with instance. See the following
Block data_disks
.- dedicated_
host_ strid The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- deletion_
protection bool Whether to enable release protection for the instance.
- deployment_
set_ strid The ID of the deployment set to which to deploy the instance.
- description str
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- exclude_
instance_ Ecsfilter Instance Set Exclude Instance Filter Args The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- host_
name str The hostname of instance.
- hpc_
cluster_ strid The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- instance_
charge_ strtype The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- instance_
name str The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- internet_
charge_ strtype The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- internet_
max_ intbandwidth_ out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- key_
pair_ strname The name of key pair that can login ECS instance successfully without password.
- launch_
template_ strid The ID of the launch template.
- launch_
template_ strname The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- launch_
template_ strversion The version of the launch template.
- network_
interfaces Sequence[EcsInstance Set Network Interface Args] A list of NetworkInterface. See the following
Block network_interfaces
.- password str
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password_
inherit bool Whether to use the password preset in the image.
- period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period_
unit str The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- ram_
role_ strname The Instance RAM role name.
- resource_
group_ strid The ID of resource group which the instance belongs.
- security_
enhancement_ strstrategy The security enhancement strategy.
- spot_
price_ floatlimit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot_
strategy str The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- system_
disk_ strauto_ snapshot_ policy_ id The ID of the automatic snapshot policy applied to the system disk.
- system_
disk_ strcategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- system_
disk_ strdescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- system_
disk_ strname The name of the system disk.
- system_
disk_ strperformance_ level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- system_
disk_ intsize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- Mapping[str, str]
A mapping of tags to assign to the resource.
- unique_
suffix bool Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- vswitch_
id str The virtual switch ID to launch in VPC.
- zone_
id str The ID of the zone in which to create the instance.
- image
Id String The Image to use for the instance.
- instance
Type String The type of instance to start.
- security
Group List<String>Ids A list of security group ids to associate with.
- amount Number
The number of instances that you want to create. Valid values:
1
to100
.- auto
Release StringTime The automatic release time of the
PostPaid
instance.- auto
Renew Boolean Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- auto
Renew NumberPeriod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check BooleanOs With Assistant Indicate how to check instance ready to use.
- data
Disks List<Property Map> The list of data disks created with instance. See the following
Block data_disks
.- dedicated
Host StringId The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- deletion
Protection Boolean Whether to enable release protection for the instance.
- deployment
Set StringId The ID of the deployment set to which to deploy the instance.
- description String
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- exclude
Instance Property MapFilter The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- host
Name String The hostname of instance.
- hpc
Cluster StringId The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- instance
Charge StringType The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- instance
Name String The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- internet
Charge StringType The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- internet
Max NumberBandwidth Out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- key
Pair StringName The name of key pair that can login ECS instance successfully without password.
- launch
Template StringId The ID of the launch template.
- launch
Template StringName The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- launch
Template StringVersion The version of the launch template.
- network
Interfaces List<Property Map> A list of NetworkInterface. See the following
Block network_interfaces
.- password String
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit Boolean Whether to use the password preset in the image.
- period Number
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit String The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- ram
Role StringName The Instance RAM role name.
- resource
Group StringId The ID of resource group which the instance belongs.
- security
Enhancement StringStrategy The security enhancement strategy.
- spot
Price NumberLimit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy String The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- system
Disk StringAuto Snapshot Policy Id The ID of the automatic snapshot policy applied to the system disk.
- system
Disk StringCategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- system
Disk StringDescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- system
Disk StringName The name of the system disk.
- system
Disk StringPerformance Level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- system
Disk NumberSize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- Map<String>
A mapping of tags to assign to the resource.
- unique
Suffix Boolean Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- vswitch
Id String The virtual switch ID to launch in VPC.
- zone
Id String The ID of the zone in which to create the instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the EcsInstanceSet resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Ids List<string> A list of ECS Instance ID.
- Id string
The provider-assigned unique ID for this managed resource.
- Instance
Ids []string A list of ECS Instance ID.
- id String
The provider-assigned unique ID for this managed resource.
- instance
Ids List<String> A list of ECS Instance ID.
- id string
The provider-assigned unique ID for this managed resource.
- instance
Ids string[] A list of ECS Instance ID.
- id str
The provider-assigned unique ID for this managed resource.
- instance_
ids Sequence[str] A list of ECS Instance ID.
- id String
The provider-assigned unique ID for this managed resource.
- instance
Ids List<String> A list of ECS Instance ID.
Look up Existing EcsInstanceSet Resource
Get an existing EcsInstanceSet 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?: EcsInstanceSetState, opts?: CustomResourceOptions): EcsInstanceSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
amount: Optional[int] = None,
auto_release_time: Optional[str] = None,
auto_renew: Optional[bool] = None,
auto_renew_period: Optional[int] = None,
boot_check_os_with_assistant: Optional[bool] = None,
data_disks: Optional[Sequence[EcsInstanceSetDataDiskArgs]] = None,
dedicated_host_id: Optional[str] = None,
deletion_protection: Optional[bool] = None,
deployment_set_id: Optional[str] = None,
description: Optional[str] = None,
exclude_instance_filter: Optional[EcsInstanceSetExcludeInstanceFilterArgs] = None,
host_name: Optional[str] = None,
hpc_cluster_id: Optional[str] = None,
image_id: Optional[str] = None,
instance_charge_type: Optional[str] = None,
instance_ids: Optional[Sequence[str]] = None,
instance_name: Optional[str] = None,
instance_type: Optional[str] = None,
internet_charge_type: Optional[str] = None,
internet_max_bandwidth_out: Optional[int] = None,
key_pair_name: Optional[str] = None,
launch_template_id: Optional[str] = None,
launch_template_name: Optional[str] = None,
launch_template_version: Optional[str] = None,
network_interfaces: Optional[Sequence[EcsInstanceSetNetworkInterfaceArgs]] = None,
password: Optional[str] = None,
password_inherit: Optional[bool] = None,
period: Optional[int] = None,
period_unit: Optional[str] = None,
ram_role_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_enhancement_strategy: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
spot_price_limit: Optional[float] = None,
spot_strategy: Optional[str] = None,
system_disk_auto_snapshot_policy_id: Optional[str] = None,
system_disk_category: Optional[str] = None,
system_disk_description: Optional[str] = None,
system_disk_name: Optional[str] = None,
system_disk_performance_level: Optional[str] = None,
system_disk_size: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None,
unique_suffix: Optional[bool] = None,
vswitch_id: Optional[str] = None,
zone_id: Optional[str] = None) -> EcsInstanceSet
func GetEcsInstanceSet(ctx *Context, name string, id IDInput, state *EcsInstanceSetState, opts ...ResourceOption) (*EcsInstanceSet, error)
public static EcsInstanceSet Get(string name, Input<string> id, EcsInstanceSetState? state, CustomResourceOptions? opts = null)
public static EcsInstanceSet get(String name, Output<String> id, EcsInstanceSetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Amount int
The number of instances that you want to create. Valid values:
1
to100
.- Auto
Release stringTime The automatic release time of the
PostPaid
instance.- Auto
Renew bool Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- Auto
Renew intPeriod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Boot
Check boolOs With Assistant Indicate how to check instance ready to use.
- Data
Disks List<Pulumi.Ali Cloud. Ecs. Inputs. Ecs Instance Set Data Disk Args> The list of data disks created with instance. See the following
Block data_disks
.- Dedicated
Host stringId The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- Deletion
Protection bool Whether to enable release protection for the instance.
- Deployment
Set stringId The ID of the deployment set to which to deploy the instance.
- Description string
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- Exclude
Instance Pulumi.Filter Ali Cloud. Ecs. Inputs. Ecs Instance Set Exclude Instance Filter Args The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- Host
Name string The hostname of instance.
- Hpc
Cluster stringId The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- Image
Id string The Image to use for the instance.
- Instance
Charge stringType The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- Instance
Ids List<string> A list of ECS Instance ID.
- Instance
Name string The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- Instance
Type string The type of instance to start.
- Internet
Charge stringType The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- Internet
Max intBandwidth Out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- Key
Pair stringName The name of key pair that can login ECS instance successfully without password.
- Launch
Template stringId The ID of the launch template.
- Launch
Template stringName The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- Launch
Template stringVersion The version of the launch template.
- Network
Interfaces List<Pulumi.Ali Cloud. Ecs. Inputs. Ecs Instance Set Network Interface Args> A list of NetworkInterface. See the following
Block network_interfaces
.- Password string
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- Password
Inherit bool Whether to use the password preset in the image.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Period
Unit string The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- Ram
Role stringName The Instance RAM role name.
- Resource
Group stringId The ID of resource group which the instance belongs.
- Security
Enhancement stringStrategy The security enhancement strategy.
- Security
Group List<string>Ids A list of security group ids to associate with.
- Spot
Price doubleLimit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- Spot
Strategy string The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- System
Disk stringAuto Snapshot Policy Id The ID of the automatic snapshot policy applied to the system disk.
- System
Disk stringCategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- System
Disk stringDescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- System
Disk stringName The name of the system disk.
- System
Disk stringPerformance Level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- System
Disk intSize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Unique
Suffix bool Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- Vswitch
Id string The virtual switch ID to launch in VPC.
- Zone
Id string The ID of the zone in which to create the instance.
- Amount int
The number of instances that you want to create. Valid values:
1
to100
.- Auto
Release stringTime The automatic release time of the
PostPaid
instance.- Auto
Renew bool Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- Auto
Renew intPeriod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Boot
Check boolOs With Assistant Indicate how to check instance ready to use.
- Data
Disks []EcsInstance Set Data Disk Args The list of data disks created with instance. See the following
Block data_disks
.- Dedicated
Host stringId The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- Deletion
Protection bool Whether to enable release protection for the instance.
- Deployment
Set stringId The ID of the deployment set to which to deploy the instance.
- Description string
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- Exclude
Instance EcsFilter Instance Set Exclude Instance Filter Args The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- Host
Name string The hostname of instance.
- Hpc
Cluster stringId The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- Image
Id string The Image to use for the instance.
- Instance
Charge stringType The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- Instance
Ids []string A list of ECS Instance ID.
- Instance
Name string The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- Instance
Type string The type of instance to start.
- Internet
Charge stringType The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- Internet
Max intBandwidth Out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- Key
Pair stringName The name of key pair that can login ECS instance successfully without password.
- Launch
Template stringId The ID of the launch template.
- Launch
Template stringName The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- Launch
Template stringVersion The version of the launch template.
- Network
Interfaces []EcsInstance Set Network Interface Args A list of NetworkInterface. See the following
Block network_interfaces
.- Password string
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- Password
Inherit bool Whether to use the password preset in the image.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- Period
Unit string The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- Ram
Role stringName The Instance RAM role name.
- Resource
Group stringId The ID of resource group which the instance belongs.
- Security
Enhancement stringStrategy The security enhancement strategy.
- Security
Group []stringIds A list of security group ids to associate with.
- Spot
Price float64Limit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- Spot
Strategy string The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- System
Disk stringAuto Snapshot Policy Id The ID of the automatic snapshot policy applied to the system disk.
- System
Disk stringCategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- System
Disk stringDescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- System
Disk stringName The name of the system disk.
- System
Disk stringPerformance Level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- System
Disk intSize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- map[string]string
A mapping of tags to assign to the resource.
- Unique
Suffix bool Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- Vswitch
Id string The virtual switch ID to launch in VPC.
- Zone
Id string The ID of the zone in which to create the instance.
- amount Integer
The number of instances that you want to create. Valid values:
1
to100
.- auto
Release StringTime The automatic release time of the
PostPaid
instance.- auto
Renew Boolean Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- auto
Renew IntegerPeriod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check BooleanOs With Assistant Indicate how to check instance ready to use.
- data
Disks List<EcsInstance Set Data Disk Args> The list of data disks created with instance. See the following
Block data_disks
.- dedicated
Host StringId The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- deletion
Protection Boolean Whether to enable release protection for the instance.
- deployment
Set StringId The ID of the deployment set to which to deploy the instance.
- description String
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- exclude
Instance EcsFilter Instance Set Exclude Instance Filter Args The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- host
Name String The hostname of instance.
- hpc
Cluster StringId The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- image
Id String The Image to use for the instance.
- instance
Charge StringType The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- instance
Ids List<String> A list of ECS Instance ID.
- instance
Name String The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- instance
Type String The type of instance to start.
- internet
Charge StringType The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- internet
Max IntegerBandwidth Out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- key
Pair StringName The name of key pair that can login ECS instance successfully without password.
- launch
Template StringId The ID of the launch template.
- launch
Template StringName The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- launch
Template StringVersion The version of the launch template.
- network
Interfaces List<EcsInstance Set Network Interface Args> A list of NetworkInterface. See the following
Block network_interfaces
.- password String
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit Boolean Whether to use the password preset in the image.
- period Integer
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit String The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- ram
Role StringName The Instance RAM role name.
- resource
Group StringId The ID of resource group which the instance belongs.
- security
Enhancement StringStrategy The security enhancement strategy.
- security
Group List<String>Ids A list of security group ids to associate with.
- spot
Price DoubleLimit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy String The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- system
Disk StringAuto Snapshot Policy Id The ID of the automatic snapshot policy applied to the system disk.
- system
Disk StringCategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- system
Disk StringDescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- system
Disk StringName The name of the system disk.
- system
Disk StringPerformance Level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- system
Disk IntegerSize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- Map<String,String>
A mapping of tags to assign to the resource.
- unique
Suffix Boolean Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- vswitch
Id String The virtual switch ID to launch in VPC.
- zone
Id String The ID of the zone in which to create the instance.
- amount number
The number of instances that you want to create. Valid values:
1
to100
.- auto
Release stringTime The automatic release time of the
PostPaid
instance.- auto
Renew boolean Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- auto
Renew numberPeriod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check booleanOs With Assistant Indicate how to check instance ready to use.
- data
Disks EcsInstance Set Data Disk Args[] The list of data disks created with instance. See the following
Block data_disks
.- dedicated
Host stringId The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- deletion
Protection boolean Whether to enable release protection for the instance.
- deployment
Set stringId The ID of the deployment set to which to deploy the instance.
- description string
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- exclude
Instance EcsFilter Instance Set Exclude Instance Filter Args The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- host
Name string The hostname of instance.
- hpc
Cluster stringId The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- image
Id string The Image to use for the instance.
- instance
Charge stringType The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- instance
Ids string[] A list of ECS Instance ID.
- instance
Name string The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- instance
Type string The type of instance to start.
- internet
Charge stringType The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- internet
Max numberBandwidth Out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- key
Pair stringName The name of key pair that can login ECS instance successfully without password.
- launch
Template stringId The ID of the launch template.
- launch
Template stringName The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- launch
Template stringVersion The version of the launch template.
- network
Interfaces EcsInstance Set Network Interface Args[] A list of NetworkInterface. See the following
Block network_interfaces
.- password string
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit boolean Whether to use the password preset in the image.
- period number
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit string The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- ram
Role stringName The Instance RAM role name.
- resource
Group stringId The ID of resource group which the instance belongs.
- security
Enhancement stringStrategy The security enhancement strategy.
- security
Group string[]Ids A list of security group ids to associate with.
- spot
Price numberLimit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy string The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- system
Disk stringAuto Snapshot Policy Id The ID of the automatic snapshot policy applied to the system disk.
- system
Disk stringCategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- system
Disk stringDescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- system
Disk stringName The name of the system disk.
- system
Disk stringPerformance Level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- system
Disk numberSize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- {[key: string]: string}
A mapping of tags to assign to the resource.
- unique
Suffix boolean Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- vswitch
Id string The virtual switch ID to launch in VPC.
- zone
Id string The ID of the zone in which to create the instance.
- amount int
The number of instances that you want to create. Valid values:
1
to100
.- auto_
release_ strtime The automatic release time of the
PostPaid
instance.- auto_
renew bool Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- auto_
renew_ intperiod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot_
check_ boolos_ with_ assistant Indicate how to check instance ready to use.
- data_
disks Sequence[EcsInstance Set Data Disk Args] The list of data disks created with instance. See the following
Block data_disks
.- dedicated_
host_ strid The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- deletion_
protection bool Whether to enable release protection for the instance.
- deployment_
set_ strid The ID of the deployment set to which to deploy the instance.
- description str
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- exclude_
instance_ Ecsfilter Instance Set Exclude Instance Filter Args The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- host_
name str The hostname of instance.
- hpc_
cluster_ strid The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- image_
id str The Image to use for the instance.
- instance_
charge_ strtype The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- instance_
ids Sequence[str] A list of ECS Instance ID.
- instance_
name str The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- instance_
type str The type of instance to start.
- internet_
charge_ strtype The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- internet_
max_ intbandwidth_ out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- key_
pair_ strname The name of key pair that can login ECS instance successfully without password.
- launch_
template_ strid The ID of the launch template.
- launch_
template_ strname The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- launch_
template_ strversion The version of the launch template.
- network_
interfaces Sequence[EcsInstance Set Network Interface Args] A list of NetworkInterface. See the following
Block network_interfaces
.- password str
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password_
inherit bool Whether to use the password preset in the image.
- period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period_
unit str The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- ram_
role_ strname The Instance RAM role name.
- resource_
group_ strid The ID of resource group which the instance belongs.
- security_
enhancement_ strstrategy The security enhancement strategy.
- security_
group_ Sequence[str]ids A list of security group ids to associate with.
- spot_
price_ floatlimit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot_
strategy str The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- system_
disk_ strauto_ snapshot_ policy_ id The ID of the automatic snapshot policy applied to the system disk.
- system_
disk_ strcategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- system_
disk_ strdescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- system_
disk_ strname The name of the system disk.
- system_
disk_ strperformance_ level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- system_
disk_ intsize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- Mapping[str, str]
A mapping of tags to assign to the resource.
- unique_
suffix bool Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- vswitch_
id str The virtual switch ID to launch in VPC.
- zone_
id str The ID of the zone in which to create the instance.
- amount Number
The number of instances that you want to create. Valid values:
1
to100
.- auto
Release StringTime The automatic release time of the
PostPaid
instance.- auto
Renew Boolean Whether to enable auto-renewal for the instance. This parameter is valid only when the
instance_charge_type
is set toPrePaid
.- auto
Renew NumberPeriod Auto renewal period of an instance, in the unit of month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,6
,12
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- boot
Check BooleanOs With Assistant Indicate how to check instance ready to use.
- data
Disks List<Property Map> The list of data disks created with instance. See the following
Block data_disks
.- dedicated
Host StringId The ID of the dedicated host on which to create the instance. If the
dedicated_host_id
is specified, thespot_strategy
andspot_price_limit
are ignored. This is because preemptible instances cannot be created on dedicated hosts.- deletion
Protection Boolean Whether to enable release protection for the instance.
- deployment
Set StringId The ID of the deployment set to which to deploy the instance.
- description String
The description of the instance, This description can have a string of 2 to 256 characters, It cannot begin with
http://
orhttps://
.- exclude
Instance Property MapFilter The instances that need to be excluded from the Instance Set. See the following
Block exclude_instance_filter
.- host
Name String The hostname of instance.
- hpc
Cluster StringId The ID of the Elastic High Performance Computing (E-HPC) cluster to which to assign the instance.
- image
Id String The Image to use for the instance.
- instance
Charge StringType The billing method of the instance. Valid values:
PrePaid
,PostPaid
.- instance
Ids List<String> A list of ECS Instance ID.
- instance
Name String The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with
http://
orhttps://
.- instance
Type String The type of instance to start.
- internet
Charge StringType The Internet charge type of the instance. Valid values are
PayByBandwidth
,PayByTraffic
.- internet
Max NumberBandwidth Out The Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second). Valid values:
1
to100
.- key
Pair StringName The name of key pair that can login ECS instance successfully without password.
- launch
Template StringId The ID of the launch template.
- launch
Template StringName The name of the launch template. To use a launch template to create an instance, you must use the
launch_template_id
orlaunch_template_name
parameter to specify the launch template.- launch
Template StringVersion The version of the launch template.
- network
Interfaces List<Property Map> A list of NetworkInterface. See the following
Block network_interfaces
.- password String
The password to an instance is a string of 8 to 30 characters. It must contain uppercase/lowercase letters and numerals, but cannot contain special symbols.
- password
Inherit Boolean Whether to use the password preset in the image.
- period Number
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
.- When
period_unit
isMonth
, Valid values:1
,2
,3
,4
,5
,6
,7
,8
,9
,12
,24
,36
,48
,60
. - When
period_unit
isWeek
, Valid values:1
,2
,3
.
- When
- period
Unit String The duration unit that you will buy the resource. It is valid when
instance_charge_type
is 'PrePaid'. Valid value:Week
,Month
.- ram
Role StringName The Instance RAM role name.
- resource
Group StringId The ID of resource group which the instance belongs.
- security
Enhancement StringStrategy The security enhancement strategy.
- security
Group List<String>Ids A list of security group ids to associate with.
- spot
Price NumberLimit The hourly price threshold of a instance, and it takes effect only when parameter 'spot_strategy' is 'SpotWithPriceLimit'. Three decimals is allowed at most.
- spot
Strategy String The spot strategy of a Pay-As-You-Go instance, and it takes effect only when parameter
instance_charge_type
is 'PostPaid'.- system
Disk StringAuto Snapshot Policy Id The ID of the automatic snapshot policy applied to the system disk.
- system
Disk StringCategory The category of the system disk. Valid values are
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- system
Disk StringDescription The description of the system disk. The description must be 2 to 256 characters in length and cannot start with
http://
orhttps://
.- system
Disk StringName The name of the system disk.
- system
Disk StringPerformance Level The performance level of the ESSD used as the system disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- system
Disk NumberSize The size of the system disk, measured in GiB. Value range: values:
20
to500
.- Map<String>
A mapping of tags to assign to the resource.
- unique
Suffix Boolean Whether to automatically append incremental suffixes to the hostname specified by the HostName parameter and to the instance name specified by the InstanceName parameter when you batch create instances. The incremental suffixes can range from
001
to999
.- vswitch
Id String The virtual switch ID to launch in VPC.
- zone
Id String The ID of the zone in which to create the instance.
Supporting Types
EcsInstanceSetDataDisk
- Disk
Size int The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- Auto
Snapshot stringPolicy Id The ID of the automatic snapshot policy applied to the system disk.
- Disk
Category string The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- Disk
Description string The description of the data disk.
- Disk
Name string The name of the data disk.
- Encrypted bool
- Kms
Key stringId The KMS key ID corresponding to the data disk.
- Performance
Level string The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- 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.
- Disk
Size int The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- Auto
Snapshot stringPolicy Id The ID of the automatic snapshot policy applied to the system disk.
- Disk
Category string The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- Disk
Description string The description of the data disk.
- Disk
Name string The name of the data disk.
- Encrypted bool
- Kms
Key stringId The KMS key ID corresponding to the data disk.
- Performance
Level string The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- 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.
- disk
Size Integer The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- auto
Snapshot StringPolicy Id The ID of the automatic snapshot policy applied to the system disk.
- disk
Category String The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- disk
Description String The description of the data disk.
- disk
Name String The name of the data disk.
- encrypted Boolean
- kms
Key StringId The KMS key ID corresponding to the data disk.
- performance
Level String The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- 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.
- disk
Size number The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- auto
Snapshot stringPolicy Id The ID of the automatic snapshot policy applied to the system disk.
- disk
Category string The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- disk
Description string The description of the data disk.
- disk
Name string The name of the data disk.
- encrypted boolean
- kms
Key stringId The KMS key ID corresponding to the data disk.
- performance
Level string The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- 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.
- disk_
size int The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- auto_
snapshot_ strpolicy_ id The ID of the automatic snapshot policy applied to the system disk.
- disk_
category str The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- disk_
description str The description of the data disk.
- disk_
name str The name of the data disk.
- encrypted bool
- kms_
key_ strid The KMS key ID corresponding to the data disk.
- performance_
level str The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- 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.
- disk
Size Number The size of the data disk. Unit: GiB.
- When
disk_category
iscloud_efficiency
, Valid values:20
to32768
. - When
disk_category
iscloud_ssd
, Valid values:20
to32768
. - When
disk_category
iscloud_essd
, Valid values:20
to32768
. - When
disk_category
iscloud
, Valid values:5
to200
.
- When
- auto
Snapshot StringPolicy Id The ID of the automatic snapshot policy applied to the system disk.
- disk
Category String The category of the disk. Valid values:
cloud_efficiency
,cloud_ssd
,cloud_essd
,cloud
.- disk
Description String The description of the data disk.
- disk
Name String The name of the data disk.
- encrypted Boolean
- kms
Key StringId The KMS key ID corresponding to the data disk.
- performance
Level String The performance level of the ESSD used as data disk. Valid values:
PL0
,PL1
,PL2
,PL3
.- 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.
EcsInstanceSetExcludeInstanceFilter
EcsInstanceSetNetworkInterface
- Security
Group stringId The ID of the security group to which to assign secondary ENI.
- Description string
The description of ENI.
- Network
Interface stringName The name of ENI.
- Primary
Ip stringAddress The primary private IP address of ENI.
- Vswitch
Id string The ID of the vSwitch to which to connect ENI.
- Security
Group stringId The ID of the security group to which to assign secondary ENI.
- Description string
The description of ENI.
- Network
Interface stringName The name of ENI.
- Primary
Ip stringAddress The primary private IP address of ENI.
- Vswitch
Id string The ID of the vSwitch to which to connect ENI.
- security
Group StringId The ID of the security group to which to assign secondary ENI.
- description String
The description of ENI.
- network
Interface StringName The name of ENI.
- primary
Ip StringAddress The primary private IP address of ENI.
- vswitch
Id String The ID of the vSwitch to which to connect ENI.
- security
Group stringId The ID of the security group to which to assign secondary ENI.
- description string
The description of ENI.
- network
Interface stringName The name of ENI.
- primary
Ip stringAddress The primary private IP address of ENI.
- vswitch
Id string The ID of the vSwitch to which to connect ENI.
- security_
group_ strid The ID of the security group to which to assign secondary ENI.
- description str
The description of ENI.
- network_
interface_ strname The name of ENI.
- primary_
ip_ straddress The primary private IP address of ENI.
- vswitch_
id str The ID of the vSwitch to which to connect ENI.
- security
Group StringId The ID of the security group to which to assign secondary ENI.
- description String
The description of ENI.
- network
Interface StringName The name of ENI.
- primary
Ip StringAddress The primary private IP address of ENI.
- vswitch
Id String The ID of the vSwitch to which to connect ENI.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.