Class ScalingGroupArgs
Inherited Members
Namespace: Pulumi.AliCloud.Ess
Assembly: Pulumi.AliCloud.dll
Syntax
public sealed class ScalingGroupArgs : ResourceArgs
Constructors
View SourceScalingGroupArgs()
Declaration
public ScalingGroupArgs()
Properties
View SourceDbInstanceIds
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.
Declaration
public InputList<string> DbInstanceIds { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
DefaultCooldown
Default cool-down time (in seconds) of the scaling group. Value range: [0, 86400]. The default value is 300s.
Declaration
public Input<int> DefaultCooldown { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
DesiredCapacity
Expected number of ECS instances in the scaling group. Value range: [min_size, max_size].
Declaration
public Input<int> DesiredCapacity { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
LoadbalancerIds
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_onargument targeting youralicloud.slb.Listenerin 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.
Declaration
public InputList<string> LoadbalancerIds { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
MaxSize
Maximum number of ECS instances in the scaling group. Value range: [0, 1000].
Declaration
public Input<int> MaxSize { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
MinSize
Minimum number of ECS instances in the scaling group. Value range: [0, 1000].
Declaration
public Input<int> MinSize { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
MultiAzPolicy
Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available in 1.54.0+).
Declaration
public Input<string> MultiAzPolicy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
OnDemandBaseCapacity
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.
Declaration
public Input<int> OnDemandBaseCapacity { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
OnDemandPercentageAboveBaseCapacity
Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.
Declaration
public Input<int> OnDemandPercentageAboveBaseCapacity { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
RemovalPolicies
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 first ECS instance attached to the scaling group.
- NewestInstance: removes the first ECS instance attached to the scaling group.
- OldestScalingConfiguration: removes the ECS instance with the oldest scaling configuration.
- Default values: OldestScalingConfiguration and OldestInstance. You can enter up to two removal policies.
Declaration
public InputList<string> RemovalPolicies { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
ScalingGroupName
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.
Declaration
public Input<string> ScalingGroupName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SpotInstancePools
The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.
Declaration
public Input<int> SpotInstancePools { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
SpotInstanceRemedy
Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
Declaration
public Input<bool> SpotInstanceRemedy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
VswitchId
It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.
Declaration
public Input<string> VswitchId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
VswitchIds
List of virtual switch IDs in which the ecs instances to be launched.
Declaration
public InputList<string> VswitchIds { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |