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
Post a Comment