#!/bin/bash

# Usage: Show diagrams for specific VPC about the security groups 
#   export REGION=<aws_region_code>
#   flash-show-aws-security-groups-by-vpc.sh <vpc-name>|<vpc-id>

# Example:
#   export REGION=us-west-2
#   flash-show-aws-security-groups-by-vpc.sh pe-service-vpc

mkdir ./stage/ 2>>/dev/null

python -m pingcap.pe.flash.cmd_show_aws_security_groups_by_vpc $*

echo "Please check your ./stage/ directory for the output diagrams in png format."

open ./stage/
