Currently, if I want to execute something on a VM, I copy files over like this:
gcloud compute --project copy-files --zone /
Did it with a bit of a tangent; using the normal ssh client instead of gcloud compute
:
ssh -i ~/.ssh/google_compute_engine roman@ 'python /some/path/example.py'
The gcloud ssh key is located at ~/.ssh/google_compute_engine
, which it uses. It also requires the external IP address of the instance instead of its name.