Troubleshooting: gcloud compute ssh could not fetch instance
Troubleshooting: gcloud compute ssh could not fetch instance
I create a instance on gcloud compute under project gvm. When I tried to ssh login that instance, I got this error message.
The reason for this case is instance zone and google cloud compute default zone are different. Command line needs the zone info like this,$ gcloud compute ssh instance-1$ ERROR: (gcloud.compute.ssh) Could not fetch instance:- The resource 'projects/gvm/zones/us-west1-a/instances/instance-1' was not found
gcloud compute --project "gvm" ssh --zone "us-west1-a" "instance-1"You can find this info from vm instances page in gcloud console.
Please find more details about setting in google cloud document https://cloud.google.com/compute/docs/gcloud-compute/#configurations
Comments
agen pulsa terpercaya