Created
February 6, 2013 06:03
-
-
Save cwgem/4720692 to your computer and use it in GitHub Desktop.
A good way to find PV-GRUB kernel IDs for custom kernel EC2 AMIs
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
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
Sample Output for us-west-2