I'm testing out Compute Engine and am hitting a snag. I've set up a project (jwl-project-1) and created an instance (instance-1). After authenticating with gcloud auth login, I set the project like this:
gcloud config set project jwl-project-1
And then tried to get a list of instances:
gcloud compute instances list
In return, I get this error:
ERROR: (gcloud.compute.instances.list) Some requests did not succeed:
- Invalid value for project: jwl-project-1
I basically accepted the default values for project and instances (micro-disk). What am I missing?
As the error indicates there is no project called 'jwl-project-1' under your account. Try to use your Project ID instead:
$ gcloud config set project <project-id>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With