Created
June 19, 2019 14:51
-
-
Save diasjorge/2727d6282ce833cb7befeb6a6e51c969 to your computer and use it in GitHub Desktop.
Get most recent AWS AMI
This file contains 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 --region us-east-1 describe-images --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