This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'fog' | |
require 'yaml' | |
PACKAGES = 'build-essential git-core ruby1.9.1 ruby1.9.1-dev libxml2-dev libxslt1-dev libpq-dev libsqlite3-dev zlib1g-dev libmysqlclient-dev libpgsql-ruby1.9.1' | |
region = ARGV[0] || 'eu-west-1' | |
ami = ARGV[1] || 'ami-ce7b6fba' # this needs to be an Ubuntu ami (I use 12.04) | |
flavor = ARGV[2] || 'c1.medium' # c1.medium has more CPU power and is a little quicker |