Created
February 14, 2019 08:32
-
-
Save lmineiro/e5e437f6a5440865b914819d78bb7e72 to your computer and use it in GitHub Desktop.
Find Latest 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 \ | |
--filters Name=name,Values=Taupage-AMI-* \ | |
--query 'Images[*].[Name,ImageId,CreationDate]' \ | |
--output text | sort -k3| tail -1 | cut -f2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment