Remove the terminated instances from the auto-scaling group in AWS

0 votes
How do I remove the terminated instances from the auto-scaling group in AWS?
Oct 9, 2019 in AWS by Hannah
• 18,520 points
1,502 views

1 answer to this question.

0 votes

Once you terminate the instance, detach it from the auto-scaling group. Use the following command:

aws autoscaling detach-instances --instance-ids YOUR-INSTANCE-ID --no-should-decrement-desired-capacity --auto-scaling-group-name YOUR-ASG-NAME

For more details, it's recommended to join the AWS training program today.

answered Oct 9, 2019 by Neel

Related Questions In AWS

0 votes
0 answers
0 votes
1 answer

How do I disable detailed monitoring for instances in an auto scaling group in a CloudFormation template?

The property you want is InstanceMonitoring, not ...READ MORE

answered Aug 31, 2018 in AWS by Archana
• 4,170 points

edited Jun 16, 2023 by Khan Sarfaraz 1,235 views
0 votes
1 answer
0 votes
1 answer

How to attach an instance to an Auto Scaling group in AWS?

Hi@akhtar, You can attach one or more EC2 instances ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,460 points
1,893 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP