Created
September 8, 2020 06:00
-
-
Save zxkane/b5ffbdeab2efacde4125c17a9f1de2c8 to your computer and use it in GitHub Desktop.
query latest amazon linux2 AMI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws ec2 describe-images --owners amazon --filters "Name=name,Values=amzn2-ami-hvm-*-ebs" "Name=root-device-type,Values=ebs" "Name=architecture,Values=x86_64" --query 'reverse(sort_by(Images, &CreationDate))[:1]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment