Reputation: 1655
I'm using Terraform to provision some infrastructure, but the debugging process causes a lot of terminated instances (destroy/recreate). When listing instances in the AWS console, all terminated instances are still listed. Is there a way to clear them? This is causing a lot of clutter.
Upvotes: 5
Views: 6236
Reputation: 963
According to official documentation it will be remove automatically after some time. you can check here https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html
Upvotes: 0
Reputation: 13065
Another (likely less popular) answer: Stop using the console. It's just a thin layer on the Amazon APIs. Write small scripts (using the AWS CLI or Boto) or a small website that will query AWS and show your infrastructure the way you want to see it.
Upvotes: 1
Reputation: 1992
You can remove the clutter by adding a search filter. Type Instance State : !Terminated
in the search filter bar at the top. (note the spaces around :
)
Upvotes: 7