Is there a way to determine how long has an Amazon AWS EC2 Instance been running for?
The EC2 service stores a LaunchTime value for each instance which you can find by doing a DescribeInstances call.  However, if you stop the instance and then restart it, this value will be updated with the new launch time so it's not really a reliable way to determine how long the instance has been running since it's original launch.
The only way I can think of to determine the original launch time would be to use CloudTrail (assuming you have it enabled for your account).  You could search CloudTrail for the original launch event and this would have an EventTime associated with it.
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?