Skip to content

Instantly share code, notes, and snippets.

@kesor
Created March 19, 2013 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kesor/5192354 to your computer and use it in GitHub Desktop.
Save kesor/5192354 to your computer and use it in GitHub Desktop.
require 'fog'
connection = Fog::Compute.new(
provider: 'AWS',
aws_access_key_id: 'AKIAIEXAMPLEEXAMPLE6',
aws_secret_access_key: 'example+example+example+example+example7',
region: 'us-east-1'
)
connection.servers.all.each do |server|
puts server.id
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment