Create an Account
username: password:
 
  MemeStreams Logo

MemeStreams Discussion

search


This page contains all of the posts and discussion on MemeStreams referencing the following web page: tip: Temporary instances with automatic shutdown - ec2ubuntu | Google Groups. You can find discussions on MemeStreams as you surf the web, even if you aren't a MemeStreams member, using the Threads Bookmarklet.

tip: Temporary instances with automatic shutdown - ec2ubuntu | Google Groups
by Lost at 3:09 pm EST, Feb 28, 2009

So far this year, I've probably spent $40 in charges I could have
avoided by terminating instances when I stopped needing them. Often,
I know when I start an instance that it is only to test a short
process and I don't expect to have it running more than the first
hour.

Here's a trick which can be used to start an instance and have that
instance shut itself down in 50 minutes:

ec2-run-instances AMIID --key KEYPAIR --user-data '#!bin/sh
shutdown -h +50 >/dev/null &'

Last night I left 14 small instances running while I slept. Will be running this command first from now on.


 
 
Powered By Industrial Memetics