UpdateAutoScalingGroup
In this article:
UpdateAutoScalingGroup#
Description#
Updates the configuration for the specified Auto Scaling Group (ASG).
Request Parameters#
Required parameters#
AutoScalingGroupName — The name of the ASG.
Type: String
Required: Yes
Constraints: 1 to 255 ASCII characters
Optional parameters#
DefaultCooldown — The time (in seconds) after which the next activity can start. Used as the default value for the Cooldown parameter when creating/updating policies in this ASG. For
SimpleScaling
policies only.Type: Integer
Required: No
Default value:
300
DesiredCapacity — The desired capacity of the ASG.
Type: Integer
Required: No
Constraints: The value should greater or equal than
MinSize
and less and equal thanMaxSize
Default value:
MinSize
HealthCheckGracePeriod — The time (in seconds) after which ASG can perform a health check on its instances.
Type: Integer
Required: No
Default value:
0
LaunchTemplate — The launch template to use to launch instances.
Required: No
MaxSize — The maximum capacity of the ASG.
Type: Integer
Required: No
MinSize — The minimal capacity of the ASG.
Type: Integer
Required: No
NewInstancesProtectedFromScaleIn — Indicates whether new instances are protected from deletion when ASG is scaled in.
Type: Boolean
Required: No
VPCZoneIdentifier — The IDs of the subnets in which instances will be created.
Type: String
Required: No
Restrictions: you can specify not more than one subnet in each availability zone. All subnets should belong to the same VPC
Patterns:
subnet-xxxxxxxx
|subnet-xxxxxxxx,subnet-yyyyyyyy
|subnet-xxxxxxxx,subnet-yyyyyyyy,subnet-zzzzzzzz
TerminationPolicies — List of criteria to select instances for deletion when their number has to be reduced. The criteria will be applied in the order in which they are listed.
Type: Array of strings
Required: No
Valid value:
OldestInstance
|NewestInstance
|OldestLaunchTemplate