ruby - How to use Fog (rubygem) to only start/stop the aws ec2 instance, but not terminate? -



ruby - How to use Fog (rubygem) to only start/stop the aws ec2 instance, but not terminate? -

i've ec2 instance @ aws ebs store thats why can start/stop server.

when start again, info persisted between restarts.

but how utilize fog or other ruby gems automate this?

not sure asking here shot stop insance via fog

conn = fog::compute::aws.new( { :aws_access_key_id=>"your_key", :aws_secret_access_key=>"your_secret"} ) conn.start_instances("i-a3432cbb") conn.stop_instances("i-a3432cbb")

ruby ruby-on-rails-3 rubygems fog

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -