Skip to content

Instantly share code, notes, and snippets.

@jmhale
Created September 28, 2018 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmhale/5a27833565e5185a4838b2227765b690 to your computer and use it in GitHub Desktop.
Save jmhale/5a27833565e5185a4838b2227765b690 to your computer and use it in GitHub Desktop.
Get all AMIs in use in AWS
aws ec2 describe-instances | jq -r '[.Reservations[].Instances[].ImageId] | unique[]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment