Skip to content

Instantly share code, notes, and snippets.

@anamorph
Created April 5, 2017 13:41
Show Gist options
  • Save anamorph/22edab049988f42a70921b350d235c7f to your computer and use it in GitHub Desktop.
Save anamorph/22edab049988f42a70921b350d235c7f to your computer and use it in GitHub Desktop.
Listing all Amazon Linux AMI ever, full #AWS #CLI
aws ec2 describe-images --owners amazon --query 'reverse(sort_by(Images[*].{Id:ImageId,Type:VirtualizationType,Created:CreationDate,Storage:RootDeviceType, Desc:Description}, &Created))' --filters "Name=description,Values=Amazon Linux AMI*" --output table
@anamorph
Copy link
Author

Further coolness; there is an SNS topic you can register to, to get access to notifications when AWS releases a new Amazon Linux AMI version :-)
Subscribe to: arn:aws:sns:us-east-1:137112412989:amazon-linux-ami-updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment