Created
October 5, 2020 18:21
-
-
Save alanyee/5b3ad044878f34aae712106895bcddc1 to your computer and use it in GitHub Desktop.
Find the current Kali Linux 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 describe-images \ | |
--owners 679593333241 \ | |
--filters 'Name=name,Values=Kali*' 'Name=state,Values=available' \ | |
--query 'reverse(sort_by(Images, &CreationDate))[:1].ImageId' \ | |
--output text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment