Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 3, 2022
1 parent 2fda33d commit c2ffc96
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions examples/full-setup/apps/test-instances/show-tunnel-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,19 @@ then
exit 1
fi

VPC=$2
if [ -z $VPC ]
REGION=$2
if [ -z $REGION ]
then
echo "* missing region"
exit 1
fi

VPC=$3
if [ -z "$VPC" ]
then
VPC="*vpc3*"
fi

aws --profile $PROFILE ec2 describe-vpn-connections --filters Name=tag:Name,Values="*vpc3*" --output text|grep -iE "VGW|TAG.*Name|customer.*cgw-"
echo "* using profile $PROFILE region $REGION for VPC filter $VPC"

aws --profile $PROFILE --region $REGION ec2 describe-vpn-connections --filters Name=tag:Name,Values="$VPC" --output text|grep -iE "VGW|TAG.*Name|customer.*cgw-"

0 comments on commit c2ffc96

Please sign in to comment.