Is there a way to determine how long has an Amazon AWS EC2 Instance been running for?

Viewed 3837

I am looking for a way to programmatically kill long running AWS EC2 Instances.

I did some googling around but I don't seem to find a way to find how long has an instance been running for, so that I then can write a script to delete the instances that have been running longer than a certain time period...

Anybody dealt with this before?

2 Answers
Related