Skip to content

Instantly share code, notes, and snippets.

@cob16
Created August 2, 2022 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cob16/841dfd66a3c056a4637ef174e64109f9 to your computer and use it in GitHub Desktop.
Save cob16/841dfd66a3c056a4637ef174e64109f9 to your computer and use it in GitHub Desktop.
Graph security groups for aws account
git clone git@github.com:anaynayak/aws-security-viz.git
cd aws-security-viz
docker build -t sec-viz .
AWS_PAGER="" aws-vault exec $AWS_ACCOUNT -- aws ec2 describe-security-groups > sg.json
docker run -i --rm -t -p 3000:3000 -v "$(pwd):/aws-security-viz" --name sec-viz sec-viz /usr/local/bundle/bin/aws_security_viz --renderer navigator --serve 3000 -o sg.json -f aws.json .
xdg-open "http://localhost:3000/navigator.html#aws.json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment