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,570 points
1,278 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,014 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,440 points
1,521 views
0 votes
1 answer

Using Shapely on AWS Lambda with Python 3

For some reason, the pip install of ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 58,090 points
2,599 views
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