Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed GCP variable names #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gateways/iap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ project=""
[ "X$TUNNEL_IAP_PROJECT" = X ] || project="--project \"$TUNNEL_IAP_PROJECT\""

zone=""
[ "X$TUNNEL_IAP_ZONE" = X ] || zone="--zone \"$TUNNEL_IAP_ZONE\""
[ "X$TUNNEL_IAP_ZONE" = X ] || zone="--zone $TUNNEL_IAP_ZONE"

$TUNNEL_GCLOUD_CMD compute ssh -q \
--tunnel-through-iap \
Expand Down
4 changes: 2 additions & 2 deletions tunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ if [ -z "$TUNNEL_TF_PID" ] ; then
export TUNNEL_GATEWAY_PORT
TUNNEL_GATEWAY_USER="$(echo "$query" | sed -e 's/^.*\"gateway_user\": *\"//' -e 's/\".*$//g')"
export TUNNEL_GATEWAY_USER
TUNNEL_IAP_GCP_PROJECT="$(echo "$query" | sed -e 's/^.*\"iap_project\": *\"//' -e 's/\",.*$//g' -e 's/\\\"/\"/g')"
TUNNEL_IAP_PROJECT="$(echo "$query" | sed -e 's/^.*\"iap_project\": *\"//' -e 's/\",.*$//g' -e 's/\\\"/\"/g')"
export TUNNEL_IAP_PROJECT
TUNNEL_IAP_GCP_ZONE="$(echo "$query" | sed -e 's/^.*\"iap_zone\": *\"//' -e 's/\",.*$//g' -e 's/\\\"/\"/g')"
TUNNEL_IAP_ZONE="$(echo "$query" | sed -e 's/^.*\"iap_zone\": *\"//' -e 's/\",.*$//g' -e 's/\\\"/\"/g')"
export TUNNEL_IAP_ZONE
TUNNEL_GCLOUD_CMD="$(echo "$query" | sed -e 's/^.*\"gcloud_cmd\": *\"//' -e 's/\",.*$//g' -e 's/\\\"/\"/g')"
export TUNNEL_GCLOUD_CMD
Expand Down