- All the common prerequisites
- Install the
vagrant-google
plugin:vagrant plugin install vagrant-google
- Add the SSH key you're going to use to GCE Metadata in Compute -> Compute Engine -> Metadata section of the console, SSH Keys tab. This has to be the same key you have loaded in your local SSH agent!
- Retrieve the Eirini service account JSON key and save it somewhere convenient
on your machine. You could ask a team member to send it securely to you, or
you can get it from our
pass
store, which lives ineirini-private-config
. The name of the key iseirini/gcp-eirini-station-json-key
. - Set up the necessary environment variables:
EIRINI_STATION_USERNAME
: the username associated to your key in the MetadataEIRINI_STATION_GCP_JSON_KEY_PATH
: the path to your copy of the JSON key for the eirini GCP service account
Start the VM:
vagrant up --provider=google
SSH into the VM:
vagrant ssh
Print the command to ssh onto the VM and send it to your pair:
pssh
You can now start your pairing session:
pmux
You pair can then join the session:
pattach
Alternatively you can put this script somewhere on your path. It is a tiny vagrant wrapper that exports the necessary env vars for you and delegates to vagrant.
You can easily provision the vm by running station up
or station provision
from any directory.
Logging onto the vm is as easy as station ssh