Last active
January 31, 2016 21:15
-
-
Save marvinpinto/8d4d892df67d6e4ee332 to your computer and use it in GitHub Desktop.
Query to return the 5 newest released Ubuntu AMI IDs
This file contains hidden or 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
sstream-query --output-format "%(version_name)s %(region)s %(id)s %(pubname)s" \ | |
http://cloud-images.ubuntu.com/releases \ | |
content_id=com.ubuntu.cloud:released:aws \ | |
virt=hvm \ | |
version=14.04 \ | |
label=release \ | |
region=us-east-1 \ | |
root_store=ebs | \ | |
sort -n | \ | |
tail -5 | |
This URL is also handy: https://cloud-images.ubuntu.com/releases/14.04/release/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment