CmdID / aws / aws autoscaling
aws autoscaling terminate-instance-in-auto-scaling-group
Terminates the specified instance and optionally adjusts the desired group size. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--auto-scaling-group-nameThe name of the Auto Scaling group.--instance-idThe ID of the instance.--instance-idsThe IDs of the instances.--should-decrement-desired-capacityIndicates whether terminating the instance also decrements the size of the Auto Scaling group.