Skip to content

Instantly share code, notes, and snippets.

@gabihodoroaga
Created May 23, 2020 16:40
Show Gist options
  • Save gabihodoroaga/8dcb6743f3fde39b31c88859a7bbedf1 to your computer and use it in GitHub Desktop.
Save gabihodoroaga/8dcb6743f3fde39b31c88859a7bbedf1 to your computer and use it in GitHub Desktop.
#!/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