Skip to content

Instantly share code, notes, and snippets.

@alanyee
Created October 5, 2020 18:21
Show Gist options
  • Save alanyee/5b3ad044878f34aae712106895bcddc1 to your computer and use it in GitHub Desktop.
Save alanyee/5b3ad044878f34aae712106895bcddc1 to your computer and use it in GitHub Desktop.
Find the current Kali Linux AMI
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