Create an Account
username: password:
 
  MemeStreams Logo

tip: Temporary instances with automatic shutdown - ec2ubuntu | Google Groups

search

Lost
Picture of Lost
My Blog
My Profile
My Audience
My Sources
Send Me a Message

sponsored links

Lost's topics
Arts
Business
Games
Health and Wellness
Home and Garden
Miscellaneous
Current Events
Recreation
Local Information
Science
Society
Sports
Technology

support us

Get MemeStreams Stuff!


 
tip: Temporary instances with automatic shutdown - ec2ubuntu | Google Groups
Topic: Technology 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.

tip: Temporary instances with automatic shutdown - ec2ubuntu | Google Groups



 
 
Powered By Industrial Memetics
RSS2.0