CmdID

CmdID / aws / aws autoscaling

aws autoscaling attach-instances

Attaches one or more EC2 instances to the specified Auto Scaling group. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To attach an instance to an Auto Scaling group

The following attach-instances example attaches the specified instance to the specified Auto Scaling group.

aws autoscaling attach-instances --instance-ids i-061c63c5eb45f0416 --auto-scaling-group-name my-asgIdentify
--instance-idsThe IDs of the instances.
--auto-scaling-group-nameThe name of the Auto Scaling group.

This command produces no output.

For more information, see Detach or attach instances from your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide.

Options

2 in the AWS CLI reference
--auto-scaling-group-nameThe name of the Auto Scaling group.
--instance-idsThe IDs of the instances.