CmdID / aws / aws autoscaling
aws autoscaling detach-instances
Removes one or more instances from the specified Auto Scaling group. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--auto-scaling-group-nameThe name of the Auto Scaling group.--instance-idsThe IDs of the instances.--should-decrement-desired-capacityIndicates whether the Auto Scaling group decrements the desired capacity value by the number of instances detached.