I'm new to gcloud
. I've created a project called playground
but can't seem to be able to use it. Here are my commands on the terminal
$ gcloud config set project playground
Updated property [core/project].
$ gcloud compute instances create --zone us-west1-a playground-instance
ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- Failed to find project playground
I'm very confused! Could this be an issue with path?
Here is what I've tried.
First I thought maybe its a path issue. I have /Users/macuser/google-cloud-sdk/bin
in $PATH
. Do I need anything else?
I've insured that the right user is logged in via gcloud auth list
and have additionally set it explicitly with gcloud config set account ...
Any advise or suggestions greatly appreciated.
Additional info
$ gcloud config list
[core]
account = [email protected]
disable_usage_reporting = True
project = playground
Your active configuration is: [playground]
GCP projects have several different identifiers:
You should use the project ID with gcloud.
It is possible "playground" is actually the project name, and not it's ID. Run gcloud projects list
to see a list of projects and their ID/number/name to verify you are using the right identifier.
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