Skip to content

Instantly share code, notes, and snippets.

@wellsie
Created September 15, 2016 15:36
Show Gist options
  • Save wellsie/8d71dfedfec09946950a31a994ee004b to your computer and use it in GitHub Desktop.
Save wellsie/8d71dfedfec09946950a31a994ee004b to your computer and use it in GitHub Desktop.
get amazon linux ami (minimal, hvm, ebs, x86_64)
aws ec2 describe-images \
--owners amazon \
--filters \
Name=architecture,Values=x86_64 \
Name=virtualization-type,Values=hvm \
"Name=name,Values=*minimal*2016.03.3*"\
Name=root-device-type,Values=ebs \
| jq .Images[].ImageId -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment