Created
November 19, 2016 23:12
-
-
Save thamizarasu/d3c7b40956faeae13953c183e1f9a88b to your computer and use it in GitHub Desktop.
This gist is to get all Network ACLs for your AWS account from all regions to review. Make sure you have aws cli setup
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
#!/bin/bash | |
NOW=$(date +"%m-%d-%Y") | |
for region in $(aws ec2 describe-regions | jq '.[] | .[] | .RegionName' | cut -d\" -f2) | |
do | |
aws ec2 describe-network-acls --region=$region >> aws-all-network-acls-$NOW.txt | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment