Skip to content

Instantly share code, notes, and snippets.

@thamizarasu
Created November 19, 2016 23:12
Show Gist options
  • Save thamizarasu/d3c7b40956faeae13953c183e1f9a88b to your computer and use it in GitHub Desktop.
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
#!/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