alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.ess.ScalingGroup

Import

ESS scaling group can be imported using the id, e.g.

 $ pulumi import alicloud:ess/scalingGroup:ScalingGroup example asg-abc123456

Create ScalingGroup Resource

new ScalingGroup(name: string, args: ScalingGroupArgs, opts?: CustomResourceOptions);
@overload
def ScalingGroup(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 db_instance_ids: Optional[Sequence[str]] = None,
                 default_cooldown: Optional[int] = None,
                 desired_capacity: Optional[int] = None,
                 group_deletion_protection: Optional[bool] = None,
                 group_type: Optional[str] = None,
                 health_check_type: Optional[str] = None,
                 launch_template_id: Optional[str] = None,
                 launch_template_version: Optional[str] = None,
                 loadbalancer_ids: Optional[Sequence[str]] = None,
                 max_size: Optional[int] = None,
                 min_size: Optional[int] = None,
                 multi_az_policy: Optional[str] = None,
                 on_demand_base_capacity: Optional[int] = None,
                 on_demand_percentage_above_base_capacity: Optional[int] = None,
                 protected_instances: Optional[Sequence[str]] = None,
                 removal_policies: Optional[Sequence[str]] = None,
                 scaling_group_name: Optional[str] = None,
                 spot_instance_pools: Optional[int] = None,
                 spot_instance_remedy: Optional[bool] = None,
                 tags: Optional[Mapping[str, Any]] = None,
                 vswitch_id: Optional[str] = None,
                 vswitch_ids: Optional[Sequence[str]] = None)
@overload
def ScalingGroup(resource_name: str,
                 args: ScalingGroupArgs,
                 opts: Optional[ResourceOptions] = None)
func NewScalingGroup(ctx *Context, name string, args ScalingGroupArgs, opts ...ResourceOption) (*ScalingGroup, error)
public ScalingGroup(string name, ScalingGroupArgs args, CustomResourceOptions? opts = null)
public ScalingGroup(String name, ScalingGroupArgs args)
public ScalingGroup(String name, ScalingGroupArgs args, CustomResourceOptions options)
type: alicloud:ess:ScalingGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ScalingGroupArgs
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 ScalingGroupArgs
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 ScalingGroupArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ScalingGroupArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ScalingGroupArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ScalingGroup 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 ScalingGroup resource accepts the following input properties:

MaxSize int

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

MinSize int

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

DbInstanceIds List<string>

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
DefaultCooldown int

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

DesiredCapacity int

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

GroupDeletionProtection bool

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

GroupType string

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

HealthCheckType string

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

LaunchTemplateId string

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

LaunchTemplateVersion string

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

LoadbalancerIds List<string>

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
MultiAzPolicy string

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

OnDemandBaseCapacity int

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

OnDemandPercentageAboveBaseCapacity int

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

ProtectedInstances List<string>

Set or unset instances within group into protected status.

RemovalPolicies List<string>

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
ScalingGroupName string

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

SpotInstancePools int

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

SpotInstanceRemedy bool

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
VswitchId string

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

VswitchIds List<string>

List of virtual switch IDs in which the ecs instances to be launched.

MaxSize int

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

MinSize int

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

DbInstanceIds []string

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
DefaultCooldown int

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

DesiredCapacity int

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

GroupDeletionProtection bool

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

GroupType string

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

HealthCheckType string

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

LaunchTemplateId string

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

LaunchTemplateVersion string

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

LoadbalancerIds []string

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
MultiAzPolicy string

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

OnDemandBaseCapacity int

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

OnDemandPercentageAboveBaseCapacity int

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

ProtectedInstances []string

Set or unset instances within group into protected status.

RemovalPolicies []string

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
ScalingGroupName string

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

SpotInstancePools int

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

SpotInstanceRemedy bool

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
VswitchId string

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

VswitchIds []string

List of virtual switch IDs in which the ecs instances to be launched.

maxSize Integer

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

minSize Integer

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

dbInstanceIds List<String>

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
defaultCooldown Integer

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

desiredCapacity Integer

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

groupDeletionProtection Boolean

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

groupType String

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

healthCheckType String

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

launchTemplateId String

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

launchTemplateVersion String

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

loadbalancerIds List<String>

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
multiAzPolicy String

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

onDemandBaseCapacity Integer

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

onDemandPercentageAboveBaseCapacity Integer

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

protectedInstances List<String>

Set or unset instances within group into protected status.

removalPolicies List<String>

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
scalingGroupName String

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

spotInstancePools Integer

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

spotInstanceRemedy Boolean

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

tags Map<String,Object>

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
vswitchId String

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

vswitchIds List<String>

List of virtual switch IDs in which the ecs instances to be launched.

maxSize number

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

minSize number

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

dbInstanceIds string[]

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
defaultCooldown number

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

desiredCapacity number

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

groupDeletionProtection boolean

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

groupType string

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

healthCheckType string

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

launchTemplateId string

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

launchTemplateVersion string

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

loadbalancerIds string[]

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
multiAzPolicy string

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

onDemandBaseCapacity number

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

onDemandPercentageAboveBaseCapacity number

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

protectedInstances string[]

Set or unset instances within group into protected status.

removalPolicies string[]

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
scalingGroupName string

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

spotInstancePools number

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

spotInstanceRemedy boolean

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
vswitchId string

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

vswitchIds string[]

List of virtual switch IDs in which the ecs instances to be launched.

max_size int

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

min_size int

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

db_instance_ids Sequence[str]

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
default_cooldown int

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

desired_capacity int

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

group_deletion_protection bool

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

group_type str

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

health_check_type str

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

launch_template_id str

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

launch_template_version str

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

loadbalancer_ids Sequence[str]

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
multi_az_policy str

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

on_demand_base_capacity int

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

on_demand_percentage_above_base_capacity int

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

protected_instances Sequence[str]

Set or unset instances within group into protected status.

removal_policies Sequence[str]

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
scaling_group_name str

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

spot_instance_pools int

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

spot_instance_remedy bool

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

tags Mapping[str, Any]

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
vswitch_id str

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

vswitch_ids Sequence[str]

List of virtual switch IDs in which the ecs instances to be launched.

maxSize Number

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

minSize Number

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

dbInstanceIds List<String>

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
defaultCooldown Number

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

desiredCapacity Number

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

groupDeletionProtection Boolean

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

groupType String

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

healthCheckType String

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

launchTemplateId String

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

launchTemplateVersion String

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

loadbalancerIds List<String>

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
multiAzPolicy String

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

onDemandBaseCapacity Number

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

onDemandPercentageAboveBaseCapacity Number

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

protectedInstances List<String>

Set or unset instances within group into protected status.

removalPolicies List<String>

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
scalingGroupName String

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

spotInstancePools Number

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

spotInstanceRemedy Boolean

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

tags Map<Any>

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
vswitchId String

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

vswitchIds List<String>

List of virtual switch IDs in which the ecs instances to be launched.

Outputs

All input properties are implicitly available as output properties. Additionally, the ScalingGroup resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing ScalingGroup Resource

Get an existing ScalingGroup 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?: ScalingGroupState, opts?: CustomResourceOptions): ScalingGroup
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        db_instance_ids: Optional[Sequence[str]] = None,
        default_cooldown: Optional[int] = None,
        desired_capacity: Optional[int] = None,
        group_deletion_protection: Optional[bool] = None,
        group_type: Optional[str] = None,
        health_check_type: Optional[str] = None,
        launch_template_id: Optional[str] = None,
        launch_template_version: Optional[str] = None,
        loadbalancer_ids: Optional[Sequence[str]] = None,
        max_size: Optional[int] = None,
        min_size: Optional[int] = None,
        multi_az_policy: Optional[str] = None,
        on_demand_base_capacity: Optional[int] = None,
        on_demand_percentage_above_base_capacity: Optional[int] = None,
        protected_instances: Optional[Sequence[str]] = None,
        removal_policies: Optional[Sequence[str]] = None,
        scaling_group_name: Optional[str] = None,
        spot_instance_pools: Optional[int] = None,
        spot_instance_remedy: Optional[bool] = None,
        tags: Optional[Mapping[str, Any]] = None,
        vswitch_id: Optional[str] = None,
        vswitch_ids: Optional[Sequence[str]] = None) -> ScalingGroup
func GetScalingGroup(ctx *Context, name string, id IDInput, state *ScalingGroupState, opts ...ResourceOption) (*ScalingGroup, error)
public static ScalingGroup Get(string name, Input<string> id, ScalingGroupState? state, CustomResourceOptions? opts = null)
public static ScalingGroup get(String name, Output<String> id, ScalingGroupState 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.
The following state arguments are supported:
DbInstanceIds List<string>

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
DefaultCooldown int

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

DesiredCapacity int

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

GroupDeletionProtection bool

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

GroupType string

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

HealthCheckType string

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

LaunchTemplateId string

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

LaunchTemplateVersion string

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

LoadbalancerIds List<string>

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
MaxSize int

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

MinSize int

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

MultiAzPolicy string

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

OnDemandBaseCapacity int

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

OnDemandPercentageAboveBaseCapacity int

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

ProtectedInstances List<string>

Set or unset instances within group into protected status.

RemovalPolicies List<string>

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
ScalingGroupName string

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

SpotInstancePools int

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

SpotInstanceRemedy bool

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
VswitchId string

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

VswitchIds List<string>

List of virtual switch IDs in which the ecs instances to be launched.

DbInstanceIds []string

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
DefaultCooldown int

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

DesiredCapacity int

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

GroupDeletionProtection bool

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

GroupType string

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

HealthCheckType string

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

LaunchTemplateId string

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

LaunchTemplateVersion string

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

LoadbalancerIds []string

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
MaxSize int

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

MinSize int

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

MultiAzPolicy string

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

OnDemandBaseCapacity int

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

OnDemandPercentageAboveBaseCapacity int

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

ProtectedInstances []string

Set or unset instances within group into protected status.

RemovalPolicies []string

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
ScalingGroupName string

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

SpotInstancePools int

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

SpotInstanceRemedy bool

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
VswitchId string

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

VswitchIds []string

List of virtual switch IDs in which the ecs instances to be launched.

dbInstanceIds List<String>

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
defaultCooldown Integer

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

desiredCapacity Integer

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

groupDeletionProtection Boolean

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

groupType String

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

healthCheckType String

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

launchTemplateId String

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

launchTemplateVersion String

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

loadbalancerIds List<String>

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
maxSize Integer

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

minSize Integer

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

multiAzPolicy String

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

onDemandBaseCapacity Integer

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

onDemandPercentageAboveBaseCapacity Integer

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

protectedInstances List<String>

Set or unset instances within group into protected status.

removalPolicies List<String>

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
scalingGroupName String

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

spotInstancePools Integer

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

spotInstanceRemedy Boolean

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

tags Map<String,Object>

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
vswitchId String

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

vswitchIds List<String>

List of virtual switch IDs in which the ecs instances to be launched.

dbInstanceIds string[]

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
defaultCooldown number

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

desiredCapacity number

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

groupDeletionProtection boolean

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

groupType string

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

healthCheckType string

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

launchTemplateId string

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

launchTemplateVersion string

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

loadbalancerIds string[]

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
maxSize number

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

minSize number

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

multiAzPolicy string

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

onDemandBaseCapacity number

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

onDemandPercentageAboveBaseCapacity number

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

protectedInstances string[]

Set or unset instances within group into protected status.

removalPolicies string[]

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
scalingGroupName string

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

spotInstancePools number

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

spotInstanceRemedy boolean

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
vswitchId string

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

vswitchIds string[]

List of virtual switch IDs in which the ecs instances to be launched.

db_instance_ids Sequence[str]

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
default_cooldown int

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

desired_capacity int

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

group_deletion_protection bool

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

group_type str

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

health_check_type str

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

launch_template_id str

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

launch_template_version str

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

loadbalancer_ids Sequence[str]

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
max_size int

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

min_size int

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

multi_az_policy str

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

on_demand_base_capacity int

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

on_demand_percentage_above_base_capacity int

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

protected_instances Sequence[str]

Set or unset instances within group into protected status.

removal_policies Sequence[str]

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
scaling_group_name str

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

spot_instance_pools int

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

spot_instance_remedy bool

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

tags Mapping[str, Any]

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
vswitch_id str

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

vswitch_ids Sequence[str]

List of virtual switch IDs in which the ecs instances to be launched.

dbInstanceIds List<String>

If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.

  • The specified RDS instance must be in running status.
  • The specified RDS instance’s whitelist must have room for more IP addresses.
defaultCooldown Number

Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.

desiredCapacity Number

Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].

groupDeletionProtection Boolean

Specifies whether the scaling group deletion protection is enabled. true or false, Default value: false.

groupType String

Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.

healthCheckType String

Resource type within scaling group. Optional values: ECS, NONE. Default to ECS.

launchTemplateId String

Instance launch template ID, scaling group obtains launch configuration from instance launch template, see Launch Template. Creating scaling group from launch template enable group automatically.

launchTemplateVersion String

The version number of the launch template. Valid values are the version number, Latest, or Default, Default value: Default.

loadbalancerIds List<String>

If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.

  • The Server Load Balancer instance must be enabled.
  • At least one listener must be configured for each Server Load Balancer and it HealthCheck must be on. Otherwise, creation will fail (it may be useful to add a depends_on argument targeting your alicloud.slb.Listener in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
  • The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
  • The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
maxSize Number

Maximum number of ECS instances in the scaling group. Value range: [0, 1000].

minSize Number

Minimum number of ECS instances in the scaling group. Value range: [0, 1000].

multiAzPolicy String

Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).

onDemandBaseCapacity Number

The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.

onDemandPercentageAboveBaseCapacity Number

Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.

protectedInstances List<String>

Set or unset instances within group into protected status.

removalPolicies List<String>

RemovalPolicy is used to select the ECS instances you want to remove from the scaling group when multiple candidates for removal exist. Optional values:

  • OldestInstance: removes the ECS instance that is added to the scaling group at the earliest point in time.
  • NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
  • OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
  • Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
scalingGroupName String

Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores _, hyphens -, and decimal points .. If this parameter is not specified, the default value is ScalingGroupId.

spotInstancePools Number

The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.

spotInstanceRemedy Boolean

Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.

tags Map<Any>

A mapping of tags to assign to the resource.

  • Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
  • Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
vswitchId String

It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.

Deprecated:

Field 'vswitch_id' has been deprecated from provider version 1.7.1, and new field 'vswitch_ids' can replace it.

vswitchIds List<String>

List of virtual switch IDs in which the ecs instances to be launched.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.