Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't get Compute Engine instances list

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?

like image 988
Joe Lowery Avatar asked Jan 29 '26 16:01

Joe Lowery


1 Answers

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>

like image 140
Kamran Avatar answered Feb 01 '26 08:02

Kamran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!