AttachInstances#

Description#

Request to attach instances to Auto Scaling Group (ASG).

Request execution will increase the desired capacity of the ASG by the number of attached instances. If the resulting value exceeds the maximum capacity, the attachment will fail and the request will return an error.

Request Parameters#

  • AutoScalingGroupName — The name of the ASG.

    • Type: String

    • Required: Yes

  • InstanceIds — List of instance IDs.

    • Type: Array of strings

    • Required: Yes

    • Maximum number of elements: 20

Examples#

c2-as AttachInstances AutoScalingGroupName "asg_name" InstanceIds.1 "i-xxxxxxxx"