A way to automatically terminate an EC2 instance
This archive was generated by
Hello, I hope someone will point me to the answer to my question, if it exists; if not, what I'm looking to do is the following:
Let's say I have an EC2 instance running several jobs that take some unknown number of hours (possibly as long as a day). They generate a whole bunch of output files, which need to be downloaded back to my local servers before I can terminate the instance; I don't have S3 here.
Now, because these jobs could take almost a day to finish, what I'd like to do is NOT sit there watching them run all day. :) I'd like some automatic way to tell EC2, be it with starcluster commands or otherwise, to logout, download all the data to my local servers, and terminate the instance the minute the jobs finish. That way I'm not stuck watching the jobs all day, but I'm not wasting money on an idle instance should the jobs finish at a time when I'm doing something crazy like sleeping. :)
Any recommendations on how to do this?
Received on Fri May 04 2012 - 09:42:26 EDT