Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save suz-lab/93a58cc81bb2900c85f5 to your computer and use it in GitHub Desktop.
Save suz-lab/93a58cc81bb2900c85f5 to your computer and use it in GitHub Desktop.
テスト
aws ec2 describe-images \
--region ap-northeast-1 \
--owners amazon \
--filters "Name=name,Values=amzn-ami-hvm-*-gp2" \
--query 'reverse(sort_by(Images,&CreationDate))[0].ImageId' \
--output text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment