Skip to content

Instantly share code, notes, and snippets.

@jedi4ever
jedi4ever / gist:955604
Created May 4, 2011 17:19
create AMI from instance with fog
>> aws_provider=Fog::Compute.new({ :region => "eu-west-1", :provider => "AWS"})
-> instance (running) = i-c1ac2bb7
>> ami=aws_provider.create_image("i-c1ac2bb7","name","description")
If not yet finished you might see
/Users/patrick/.rvm/gems/ruby-1.8.7-p330@mccloud/gems/excon-0.6.2/lib/excon/connection.rb:178:in `request':
InvalidAMIID.Unavailable => AMI 'ami-796d5b0d' is pending, and cannot be run (Fog::Service::Error)
var sys = require('sys'),
http = require('http'),
redis = require("./redisclient");
var queuedRes = {}
var counter = 1;
http.createServer(function (req, res) {
pushOnQueue(req, res);
}).listen(8000);