ScalingConfiguration
Create a ScalingConfiguration Resource
new ScalingConfiguration(name: string, args: ScalingConfigurationArgs, opts?: CustomResourceOptions);def ScalingConfiguration(resource_name, opts=None, active=None, data_disks=None, enable=None, force_delete=None, image_id=None, instance_ids=None, instance_name=None, instance_type=None, instance_types=None, internet_charge_type=None, internet_max_bandwidth_in=None, internet_max_bandwidth_out=None, io_optimized=None, is_outdated=None, key_name=None, kms_encrypted_password=None, kms_encryption_context=None, override=None, password=None, password_inherit=None, role_name=None, scaling_configuration_name=None, scaling_group_id=None, security_group_id=None, security_group_ids=None, substitute=None, system_disk_category=None, system_disk_size=None, tags=None, user_data=None, __props__=None);func NewScalingConfiguration(ctx *Context, name string, args ScalingConfigurationArgs, opts ...ResourceOption) (*ScalingConfiguration, error)public ScalingConfiguration(string name, ScalingConfigurationArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ScalingConfigurationArgs
- 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 ScalingConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScalingConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ScalingConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ScalingConfiguration resource accepts the following input properties:
- Image
Id string ID of an image file, indicating the image resource selected when an instance is enabled.
- Scaling
Group stringId ID of the scaling group of a scaling configuration.
- Active bool
Whether active current scaling configuration in the specified scaling group. Default to
false.- Data
Disks List<Pulumi.Ali Cloud. Ess. Inputs. Scaling Configuration Data Disk Args> DataDisk mappings to attach to ecs instance. See Block datadisk below for details.
- Enable bool
Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- Force
Delete bool The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- Instance
Ids List<string> It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachmentreplaces it.- Instance
Name string Name of an ECS instance. Default to “ESS-Instance”. It is valid from version 1.7.1.
- Instance
Type string Resource type of an ECS instance.
- Instance
Types List<string> Resource types of an ECS instance.
- Internet
Charge stringType Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth.- Internet
Max intBandwidth In Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- Internet
Max intBandwidth Out Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,100].
- Io
Optimized string It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- Is
Outdated bool Whether to use outdated instance type. Default to false.
- Key
Name string The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
passwordis filled in, this field will be ignored.- Kms
Encryption Dictionary<string, object>Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating a db account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- Override bool
Indicates whether to overwrite the existing data. Default to false.
- Password string
The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/, The password of Windows-based instances cannot start with a forward slash (/).- Password
Inherit bool Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
passwordandkms_encrypted_passwordwill be ignored. You must ensure that the selected image has a password configured.- Role
Name string Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Roleto create a new one.- Scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_, hypens-, and decimal point.. If this parameter value is not specified, the default value is ScalingConfigurationId.- Security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids.- Security
Group List<string>Ids List IDs of the security group used to create new instances. It is conflict with
security_group_id.- Substitute string
The another scaling configuration which will be active automatically and replace current configuration when setting
activeto ‘false’. It is invalid whenactiveis ‘true’.- System
Disk stringCategory Category of the system disk. The parameter value options are
ephemeral_ssd,cloud_efficiency,cloud_ssd,cloud_essdandcloud.cloudonly is used to some no I/O optimized instance. Default tocloud_efficiency.- System
Disk intSize Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Dictionary<string, object>
A mapping of tags to assign to the resource. It will be applied for ECS instances finally. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “http://“, or “https://” It can be a null string.
- User
Data string User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- Image
Id string ID of an image file, indicating the image resource selected when an instance is enabled.
- Scaling
Group stringId ID of the scaling group of a scaling configuration.
- Active bool
Whether active current scaling configuration in the specified scaling group. Default to
false.- Data
Disks []ScalingConfiguration Data Disk DataDisk mappings to attach to ecs instance. See Block datadisk below for details.
- Enable bool
Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- Force
Delete bool The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- Instance
Ids []string It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachmentreplaces it.- Instance
Name string Name of an ECS instance. Default to “ESS-Instance”. It is valid from version 1.7.1.
- Instance
Type string Resource type of an ECS instance.
- Instance
Types []string Resource types of an ECS instance.
- Internet
Charge stringType Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth.- Internet
Max intBandwidth In Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- Internet
Max intBandwidth Out Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,100].
- Io
Optimized string It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- Is
Outdated bool Whether to use outdated instance type. Default to false.
- Key
Name string The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
passwordis filled in, this field will be ignored.- Kms
Encryption map[string]interface{}Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating a db account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- Override bool
Indicates whether to overwrite the existing data. Default to false.
- Password string
The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/, The password of Windows-based instances cannot start with a forward slash (/).- Password
Inherit bool Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
passwordandkms_encrypted_passwordwill be ignored. You must ensure that the selected image has a password configured.- Role
Name string Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Roleto create a new one.- Scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_, hypens-, and decimal point.. If this parameter value is not specified, the default value is ScalingConfigurationId.- Security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids.- Security
Group []stringIds List IDs of the security group used to create new instances. It is conflict with
security_group_id.- Substitute string
The another scaling configuration which will be active automatically and replace current configuration when setting
activeto ‘false’. It is invalid whenactiveis ‘true’.- System
Disk stringCategory Category of the system disk. The parameter value options are
ephemeral_ssd,cloud_efficiency,cloud_ssd,cloud_essdandcloud.cloudonly is used to some no I/O optimized instance. Default tocloud_efficiency.- System
Disk intSize Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- map[string]interface{}
A mapping of tags to assign to the resource. It will be applied for ECS instances finally. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “http://“, or “https://” It can be a null string.
- User
Data string User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- image
Id string ID of an image file, indicating the image resource selected when an instance is enabled.
- scaling
Group stringId ID of the scaling group of a scaling configuration.
- active boolean
Whether active current scaling configuration in the specified scaling group. Default to
false.- data
Disks ScalingConfiguration Data Disk[] DataDisk mappings to attach to ecs instance. See Block datadisk below for details.
- enable boolean
Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force
Delete boolean The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- instance
Ids string[] It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachmentreplaces it.- instance
Name string Name of an ECS instance. Default to “ESS-Instance”. It is valid from version 1.7.1.
- instance
Type string Resource type of an ECS instance.
- instance
Types string[] Resource types of an ECS instance.
- internet
Charge stringType Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth.- internet
Max numberBandwidth In Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet
Max numberBandwidth Out Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,100].
- io
Optimized string It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is
Outdated boolean Whether to use outdated instance type. Default to false.
- key
Name string The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
passwordis filled in, this field will be ignored.- kms
Encryption {[key: string]: any}Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating a db account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- override boolean
Indicates whether to overwrite the existing data. Default to false.
- password string
The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/, The password of Windows-based instances cannot start with a forward slash (/).- password
Inherit boolean Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
passwordandkms_encrypted_passwordwill be ignored. You must ensure that the selected image has a password configured.- role
Name string Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Roleto create a new one.- scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_, hypens-, and decimal point.. If this parameter value is not specified, the default value is ScalingConfigurationId.- security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids.- security
Group string[]Ids List IDs of the security group used to create new instances. It is conflict with
security_group_id.- substitute string
The another scaling configuration which will be active automatically and replace current configuration when setting
activeto ‘false’. It is invalid whenactiveis ‘true’.- system
Disk stringCategory Category of the system disk. The parameter value options are
ephemeral_ssd,cloud_efficiency,cloud_ssd,cloud_essdandcloud.cloudonly is used to some no I/O optimized instance. Default tocloud_efficiency.- system
Disk numberSize Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- {[key: string]: any}
A mapping of tags to assign to the resource. It will be applied for ECS instances finally. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “http://“, or “https://” It can be a null string.
- user
Data string User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- image_
id str ID of an image file, indicating the image resource selected when an instance is enabled.
- scaling_
group_ strid ID of the scaling group of a scaling configuration.
- active bool
Whether active current scaling configuration in the specified scaling group. Default to
false.- data_
disks List[ScalingConfiguration Data Disk] DataDisk mappings to attach to ecs instance. See Block datadisk below for details.
- enable bool
Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force_
delete bool The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- instance_
ids List[str] It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachmentreplaces it.- instance_
name str Name of an ECS instance. Default to “ESS-Instance”. It is valid from version 1.7.1.
- instance_
type str Resource type of an ECS instance.
- instance_
types List[str] Resource types of an ECS instance.
- internet_
charge_ strtype Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth.- internet_
max_ floatbandwidth_ in Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet_
max_ floatbandwidth_ out Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,100].
- io_
optimized str It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is_
outdated bool Whether to use outdated instance type. Default to false.
- key_
name str The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms_
encrypted_ strpassword An KMS encrypts password used to a db account. If the
passwordis filled in, this field will be ignored.- kms_
encryption_ Dict[str, Any]context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating a db account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- override bool
Indicates whether to overwrite the existing data. Default to false.
- password str
The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/, The password of Windows-based instances cannot start with a forward slash (/).- password_
inherit bool Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
passwordandkms_encrypted_passwordwill be ignored. You must ensure that the selected image has a password configured.- role_
name str Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Roleto create a new one.- scaling_
configuration_ strname Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_, hypens-, and decimal point.. If this parameter value is not specified, the default value is ScalingConfigurationId.- security_
group_ strid ID of the security group used to create new instance. It is conflict with
security_group_ids.- security_
group_ List[str]ids List IDs of the security group used to create new instances. It is conflict with
security_group_id.- substitute str
The another scaling configuration which will be active automatically and replace current configuration when setting
activeto ‘false’. It is invalid whenactiveis ‘true’.- system_
disk_ strcategory Category of the system disk. The parameter value options are
ephemeral_ssd,cloud_efficiency,cloud_ssd,cloud_essdandcloud.cloudonly is used to some no I/O optimized instance. Default tocloud_efficiency.- system_
disk_ floatsize Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Dict[str, Any]
A mapping of tags to assign to the resource. It will be applied for ECS instances finally. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “http://“, or “https://” It can be a null string.
- user_
data str User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScalingConfiguration resource produces the following output properties:
Look up an Existing ScalingConfiguration Resource
Get an existing ScalingConfiguration 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?: ScalingConfigurationState, opts?: CustomResourceOptions): ScalingConfigurationstatic get(resource_name, id, opts=None, active=None, data_disks=None, enable=None, force_delete=None, image_id=None, instance_ids=None, instance_name=None, instance_type=None, instance_types=None, internet_charge_type=None, internet_max_bandwidth_in=None, internet_max_bandwidth_out=None, io_optimized=None, is_outdated=None, key_name=None, kms_encrypted_password=None, kms_encryption_context=None, override=None, password=None, password_inherit=None, role_name=None, scaling_configuration_name=None, scaling_group_id=None, security_group_id=None, security_group_ids=None, substitute=None, system_disk_category=None, system_disk_size=None, tags=None, user_data=None, __props__=None);func GetScalingConfiguration(ctx *Context, name string, id IDInput, state *ScalingConfigurationState, opts ...ResourceOption) (*ScalingConfiguration, error)public static ScalingConfiguration Get(string name, Input<string> id, ScalingConfigurationState? 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:
- Active bool
Whether active current scaling configuration in the specified scaling group. Default to
false.- Data
Disks List<Pulumi.Ali Cloud. Ess. Inputs. Scaling Configuration Data Disk Args> DataDisk mappings to attach to ecs instance. See Block datadisk below for details.
- Enable bool
Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- Force
Delete bool The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- Image
Id string ID of an image file, indicating the image resource selected when an instance is enabled.
- Instance
Ids List<string> It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachmentreplaces it.- Instance
Name string Name of an ECS instance. Default to “ESS-Instance”. It is valid from version 1.7.1.
- Instance
Type string Resource type of an ECS instance.
- Instance
Types List<string> Resource types of an ECS instance.
- Internet
Charge stringType Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth.- Internet
Max intBandwidth In Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- Internet
Max intBandwidth Out Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,100].
- Io
Optimized string It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- Is
Outdated bool Whether to use outdated instance type. Default to false.
- Key
Name string The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
passwordis filled in, this field will be ignored.- Kms
Encryption Dictionary<string, object>Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating a db account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- Override bool
Indicates whether to overwrite the existing data. Default to false.
- Password string
The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/, The password of Windows-based instances cannot start with a forward slash (/).- Password
Inherit bool Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
passwordandkms_encrypted_passwordwill be ignored. You must ensure that the selected image has a password configured.- Role
Name string Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Roleto create a new one.- Scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_, hypens-, and decimal point.. If this parameter value is not specified, the default value is ScalingConfigurationId.- Scaling
Group stringId ID of the scaling group of a scaling configuration.
- Security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids.- Security
Group List<string>Ids List IDs of the security group used to create new instances. It is conflict with
security_group_id.- Substitute string
The another scaling configuration which will be active automatically and replace current configuration when setting
activeto ‘false’. It is invalid whenactiveis ‘true’.- System
Disk stringCategory Category of the system disk. The parameter value options are
ephemeral_ssd,cloud_efficiency,cloud_ssd,cloud_essdandcloud.cloudonly is used to some no I/O optimized instance. Default tocloud_efficiency.- System
Disk intSize Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Dictionary<string, object>
A mapping of tags to assign to the resource. It will be applied for ECS instances finally. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “http://“, or “https://” It can be a null string.
- User
Data string User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- Active bool
Whether active current scaling configuration in the specified scaling group. Default to
false.- Data
Disks []ScalingConfiguration Data Disk DataDisk mappings to attach to ecs instance. See Block datadisk below for details.
- Enable bool
Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- Force
Delete bool The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- Image
Id string ID of an image file, indicating the image resource selected when an instance is enabled.
- Instance
Ids []string It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachmentreplaces it.- Instance
Name string Name of an ECS instance. Default to “ESS-Instance”. It is valid from version 1.7.1.
- Instance
Type string Resource type of an ECS instance.
- Instance
Types []string Resource types of an ECS instance.
- Internet
Charge stringType Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth.- Internet
Max intBandwidth In Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- Internet
Max intBandwidth Out Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,100].
- Io
Optimized string It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- Is
Outdated bool Whether to use outdated instance type. Default to false.
- Key
Name string The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- Kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
passwordis filled in, this field will be ignored.- Kms
Encryption map[string]interface{}Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating a db account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- Override bool
Indicates whether to overwrite the existing data. Default to false.
- Password string
The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/, The password of Windows-based instances cannot start with a forward slash (/).- Password
Inherit bool Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
passwordandkms_encrypted_passwordwill be ignored. You must ensure that the selected image has a password configured.- Role
Name string Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Roleto create a new one.- Scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_, hypens-, and decimal point.. If this parameter value is not specified, the default value is ScalingConfigurationId.- Scaling
Group stringId ID of the scaling group of a scaling configuration.
- Security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids.- Security
Group []stringIds List IDs of the security group used to create new instances. It is conflict with
security_group_id.- Substitute string
The another scaling configuration which will be active automatically and replace current configuration when setting
activeto ‘false’. It is invalid whenactiveis ‘true’.- System
Disk stringCategory Category of the system disk. The parameter value options are
ephemeral_ssd,cloud_efficiency,cloud_ssd,cloud_essdandcloud.cloudonly is used to some no I/O optimized instance. Default tocloud_efficiency.- System
Disk intSize Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- map[string]interface{}
A mapping of tags to assign to the resource. It will be applied for ECS instances finally. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “http://“, or “https://” It can be a null string.
- User
Data string User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- active boolean
Whether active current scaling configuration in the specified scaling group. Default to
false.- data
Disks ScalingConfiguration Data Disk[] DataDisk mappings to attach to ecs instance. See Block datadisk below for details.
- enable boolean
Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force
Delete boolean The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- image
Id string ID of an image file, indicating the image resource selected when an instance is enabled.
- instance
Ids string[] It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachmentreplaces it.- instance
Name string Name of an ECS instance. Default to “ESS-Instance”. It is valid from version 1.7.1.
- instance
Type string Resource type of an ECS instance.
- instance
Types string[] Resource types of an ECS instance.
- internet
Charge stringType Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth.- internet
Max numberBandwidth In Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet
Max numberBandwidth Out Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,100].
- io
Optimized string It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is
Outdated boolean Whether to use outdated instance type. Default to false.
- key
Name string The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms
Encrypted stringPassword An KMS encrypts password used to a db account. If the
passwordis filled in, this field will be ignored.- kms
Encryption {[key: string]: any}Context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating a db account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- override boolean
Indicates whether to overwrite the existing data. Default to false.
- password string
The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/, The password of Windows-based instances cannot start with a forward slash (/).- password
Inherit boolean Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
passwordandkms_encrypted_passwordwill be ignored. You must ensure that the selected image has a password configured.- role
Name string Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Roleto create a new one.- scaling
Configuration stringName Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_, hypens-, and decimal point.. If this parameter value is not specified, the default value is ScalingConfigurationId.- scaling
Group stringId ID of the scaling group of a scaling configuration.
- security
Group stringId ID of the security group used to create new instance. It is conflict with
security_group_ids.- security
Group string[]Ids List IDs of the security group used to create new instances. It is conflict with
security_group_id.- substitute string
The another scaling configuration which will be active automatically and replace current configuration when setting
activeto ‘false’. It is invalid whenactiveis ‘true’.- system
Disk stringCategory Category of the system disk. The parameter value options are
ephemeral_ssd,cloud_efficiency,cloud_ssd,cloud_essdandcloud.cloudonly is used to some no I/O optimized instance. Default tocloud_efficiency.- system
Disk numberSize Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- {[key: string]: any}
A mapping of tags to assign to the resource. It will be applied for ECS instances finally. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “http://“, or “https://” It can be a null string.
- user
Data string User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
- active bool
Whether active current scaling configuration in the specified scaling group. Default to
false.- data_
disks List[ScalingConfiguration Data Disk] DataDisk mappings to attach to ecs instance. See Block datadisk below for details.
- enable bool
Whether enable the specified scaling group(make it active) to which the current scaling configuration belongs.
- force_
delete bool The last scaling configuration will be deleted forcibly with deleting its scaling group. Default to false.
- image_
id str ID of an image file, indicating the image resource selected when an instance is enabled.
- instance_
ids List[str] It has been deprecated from version 1.6.0. New resource
alicloud.ess.Attachmentreplaces it.- instance_
name str Name of an ECS instance. Default to “ESS-Instance”. It is valid from version 1.7.1.
- instance_
type str Resource type of an ECS instance.
- instance_
types List[str] Resource types of an ECS instance.
- internet_
charge_ strtype Network billing type, Values: PayByBandwidth or PayByTraffic. Default to
PayByBandwidth.- internet_
max_ floatbandwidth_ in Maximum incoming bandwidth from the public network, measured in Mbps (Mega bit per second). The value range is [1,200].
- internet_
max_ floatbandwidth_ out Maximum outgoing bandwidth from the public network, measured in Mbps (Mega bit per second). The value range for PayByBandwidth is [0,100].
- io_
optimized str It has been deprecated on instance resource. All the launched alicloud instances will be I/O optimized.
- is_
outdated bool Whether to use outdated instance type. Default to false.
- key_
name str The name of key pair that can login ECS instance successfully without password. If it is specified, the password would be invalid.
- kms_
encrypted_ strpassword An KMS encrypts password used to a db account. If the
passwordis filled in, this field will be ignored.- kms_
encryption_ Dict[str, Any]context An KMS encryption context used to decrypt
kms_encrypted_passwordbefore creating or updating a db account withkms_encrypted_password. See Encryption Context. It is valid whenkms_encrypted_passwordis set.- override bool
Indicates whether to overwrite the existing data. Default to false.
- password str
The password of the ECS instance. The password must be 8 to 30 characters in length. It must contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include
() ~!@#$%^&*-_+=\|{}[]:;'<>,.?/, The password of Windows-based instances cannot start with a forward slash (/).- password_
inherit bool Specifies whether to use the password that is predefined in the image. If the PasswordInherit parameter is set to true, the
passwordandkms_encrypted_passwordwill be ignored. You must ensure that the selected image has a password configured.- role_
name str Instance RAM role name. The name is provided and maintained by RAM. You can use
alicloud.ram.Roleto create a new one.- scaling_
configuration_ strname Name shown for the scheduled task. which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_, hypens-, and decimal point.. If this parameter value is not specified, the default value is ScalingConfigurationId.- scaling_
group_ strid ID of the scaling group of a scaling configuration.
- security_
group_ strid ID of the security group used to create new instance. It is conflict with
security_group_ids.- security_
group_ List[str]ids List IDs of the security group used to create new instances. It is conflict with
security_group_id.- substitute str
The another scaling configuration which will be active automatically and replace current configuration when setting
activeto ‘false’. It is invalid whenactiveis ‘true’.- system_
disk_ strcategory Category of the system disk. The parameter value options are
ephemeral_ssd,cloud_efficiency,cloud_ssd,cloud_essdandcloud.cloudonly is used to some no I/O optimized instance. Default tocloud_efficiency.- system_
disk_ floatsize Size of system disk, in GiB. Optional values: cloud: 20-500, cloud_efficiency: 20-500, cloud_ssd: 20-500, ephemeral_ssd: 20-500 The default value is max{40, ImageSize}. If this parameter is set, the system disk size must be greater than or equal to max{40, ImageSize}.
- Dict[str, Any]
A mapping of tags to assign to the resource. It will be applied for ECS instances finally. - Key: It can be up to 64 characters in length. It cannot begin with “aliyun”, “http://“, or “https://“. It cannot be a null string. - Value: It can be up to 128 characters in length. It cannot begin with “aliyun”, “http://“, or “https://” It can be a null string.
- user_
data str User-defined data to customize the startup behaviors of the ECS instance and to pass data into the ECS instance.
Supporting Types
ScalingConfigurationDataDisk
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.