Skip to content

Instantly share code, notes, and snippets.

@kenjiskywalker
Created August 6, 2014 10:11
Show Gist options
  • Save kenjiskywalker/c57651eac74ca9e81c91 to your computer and use it in GitHub Desktop.
Save kenjiskywalker/c57651eac74ca9e81c91 to your computer and use it in GitHub Desktop.
AMIのImageをAMI_NAMEで絞り込んでNameとImageIdを抜き出す ref: http://qiita.com/kenjiskywalker/items/5c0d2326907bca669bb8
$ aws ec2 describe-images \
--filters "Name=name,Values='*AMI_NAME*'" \
--query 'Images[].[Name,ImageId]' \
--output text`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment