Skip to content

Instantly share code, notes, and snippets.

@andrewgross
Created April 27, 2013 20:47
Show Gist options
  • Save andrewgross/5474657 to your computer and use it in GitHub Desktop.
Save andrewgross/5474657 to your computer and use it in GitHub Desktop.
puts "Starting Bake"
puts config[:bake]
if config[:bake]
image_name = config[:bake]
puts image_name
image_description = (config[:run_list] || config[:role]).join(', ')
puts image_description
ami_info = connection.create_image(@server.identity, image_name, image_description)
puts ami_info.inspect
new_ami_id = ami_info.body['imageId']
puts new_ami_id
msg_pair("New AMI ID", new_ami_id)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment