Skip to content

Instantly share code, notes, and snippets.

@jjtroberts
Created November 2, 2023 15:40
Show Gist options
  • Save jjtroberts/d555c9fe2579c652cccf4d011bd6632d to your computer and use it in GitHub Desktop.
Save jjtroberts/d555c9fe2579c652cccf4d011bd6632d to your computer and use it in GitHub Desktop.
All them dang IAP commands
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