diff --git a/bin/.bin/ff-db-tunnel b/bin/.bin/ff-db-tunnel new file mode 100755 index 0000000..c2ee069 --- /dev/null +++ b/bin/.bin/ff-db-tunnel @@ -0,0 +1,21 @@ +#! /bin/bash +# + +if [ "$1" != "" ]; then + vpc=$1 +else + echo "provide vpc name"; + exit 1; +fi + +if [ "$2" != "" ]; then + instance=$2 +else + echo "Provide DB Instances"; + exit 1; +fi + +echo "To connect run psql -p 15432 -h 127.0.0.1 -U fifteen5_temp" +ssh -nNTL 15432:$instance:5432 util.$vpc + +