Created
November 2, 2023 15:40
-
-
Save jjtroberts/d555c9fe2579c652cccf4d011bd6632d to your computer and use it in GitHub Desktop.
All them dang IAP commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isssh () { | |
gcloud compute ssh $1 --zone "${2:-us-central1-a}" --project "${3:-stage-digital-is}" --tunnel-through-iap --strict-host-key-checking no | |
} | |
issshtun () { | |
cd /Users/JRoberts/projects/dracarys/taskfiles/is-bastion | |
task tunnel -- $1 | |
} | |
issshkill () { | |
cd /Users/JRoberts/projects/dracarys/taskfiles/is-bastion | |
task kill -- $1 | |
} | |
isrdp () { | |
gcloud compute start-iap-tunnel $1 3389 --local-host-port=127.0.0.1:3389 --zone "${2:-us-central1-a}" --project "${3:-stage-digital-is}" --iap-tunnel-disable-connection-check | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment