Google Cloud Platform: WARNING: You do not appear to have access to project [project] or it does not exist

bryan picture bryan · Nov 6, 2019 · Viewed 7.1k times · Source

I run the following commands:

gcloud auth activate-service-account --key-file key.json
gcloud config set project my-project

For some reason I am getting this error:

WARNING: You do not appear to have access to project [project] or it does not exist.

I have the following roles on my IAM:

  • App Engine Admin
  • Cloud Build Editor
  • Cloud Scheduler Admin
  • Storage Object Creator
  • Storage Object Viewer

Does anyone know why this would be happening? Is there something specific I am missing?

Answer

Buchanora picture Buchanora · Jan 27, 2020

The solution to this issue might be to enable Cloud Resource Manager api in your Google Cloud Console. Go to https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=<project-id> and click enable.