Skip to content

Instantly share code, notes, and snippets.

@copernicus
Forked from cwgem/aws.rb
Created February 6, 2013 13:05
Show Gist options
  • Save copernicus/4722393 to your computer and use it in GitHub Desktop.
Save copernicus/4722393 to your computer and use it in GitHub Desktop.
def describe_pvgrub_images()
headers = ["Image ID", "Name", "Description", "Architecture", "Kernel ID"]
values = []
AWS.memoize do
@ec2.images.with_owner('amazon').filter('name', '*grub*').each do | i |
values << [i.id, i.name, i.description, i.architecture, i.kernel_id]
end
end
print_flex_table(headers, values)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment