grempe / amazon-ec2

A Ruby Gem that gives you full access to several of the Amazon Web Services API from your Ruby/Ruby on Rails apps

This URL has Read+Write access

amazon-ec2 / bin / ec2-gem-profile.rb
100755 11 lines (7 sloc) 0.389 kb
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby
 
# Basic single command application that we can call with perftools.rb to get consistent results.
 
require File.dirname(__FILE__) + '/../lib/EC2'
ACCESS_KEY_ID = ENV['AMAZON_ACCESS_KEY_ID']
SECRET_ACCESS_KEY = ENV['AMAZON_SECRET_ACCESS_KEY']
ec2 = EC2::Base.new( :access_key_id => ACCESS_KEY_ID, :secret_access_key => SECRET_ACCESS_KEY )
@images = ec2.describe_images