Skip to content

Instantly share code, notes, and snippets.

@gjyoung1974
Created June 29, 2017 22:14
Show Gist options
  • Save gjyoung1974/993a0046ce74af730d9b5dee890416e0 to your computer and use it in GitHub Desktop.
Save gjyoung1974/993a0046ce74af730d9b5dee890416e0 to your computer and use it in GitHub Desktop.
diagram_sgs.sh
#!/bin/bash
vpcs=$(eval 'aws ec2 describe-vpcs | jq -r ".Vpcs[] | .VpcId"')
for i in $vpcs
do
sgviz generate --format=png --output-path $i --region us-west-2 --vpc-ids $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment