Created
May 23, 2020 16:40
-
-
Save gabihodoroaga/8dcb6743f3fde39b31c88859a7bbedf1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# define the variables | |
INSTANCE_NAME=iap-demo | |
ZONE=europe-west3-c | |
# connect to the vm | |
gcloud compute ssh $INSTANCE_NAME-vm --tunnel-through-iap --zone $ZONE | |
# download the source file | |
curl https://gist.githubusercontent.com/gabihodoroaga/a64ed25b69939b54a38a30d36affe2c9/raw \ | |
--output echo_server.py | |
# start the echo server | |
python echo_server.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment