Skip to content

Instantly share code, notes, and snippets.

@flomotlik
Created September 12, 2013 09:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flomotlik/6534751 to your computer and use it in GitHub Desktop.
Save flomotlik/6534751 to your computer and use it in GitHub Desktop.
Create AMI
# Create an Amazon EC2 AMI
ec2 = AWS::EC2.new(
:access_key_id => ENV['AWS_KEY'],
:secret_access_key => ENV['AWS_SECRET_KEY'])
ec2.images.create(:instance_id => instance_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment