Omar Darwish
Omar Darwish

Reputation: 1655

Clear terminated EC2 instances from AWS console

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

Answers (4)

anil sidhu
anil sidhu

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

taskiner
taskiner

Reputation: 531

They'll disappear after some time (~30 mins)

Upvotes: 3

BraveNewCurrency
BraveNewCurrency

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

Gavin Haynes
Gavin Haynes

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

Related Questions