Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (12.9k points)

One of our EC2 instance went missing from running instance list, probably it got terminated accidentally by someone.

In cloudtrail events, I can see some terminate instance events along with event time, user and instance id's which got terminated.

Problems is, as instances are already terminated I am not able to find more details of those instances using instance id.

I am interested in more details such as ami, key pair, tags.

Is there a way to get these details for terminated instance?

closed

1 Answer

+1 vote
by (18.2k points)
selected by
 
Best answer

You can use CloudTrail to get that kind of information.

1. For instances that were started within the last 90 days, you should be able to get the information directly from the CloudTrail dashboard.

2. If it has been more than 90 days since the instances were started and you had enables Cloudtrail and configured it to write to S3, then you can find this information on Cloudtrail log. Find the RunInstances even for your instance ID in the log and you will get all the information about that instance from that event onward.

Related questions

0 votes
1 answer
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer
asked Jul 10, 2019 in AWS by yuvraj (19.1k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...