Google Cloud: Active Project Does Not Match Quota Project – Google Cloud Platform

google-cloud-platform

I am trying to connect to a google cloud storage project/bucket using gcloud config set project XXX, and get the message:

WARNING: Your active project does not match the quota project in your local Application Default Credentials file. This might result in unexpected quota issues.

To update your Application Default Credentials quota project, use the gcloud auth application-default set-quota-project command.
Updated property [core/project].

What is not clear to me is:

  1. Does this mean that, say, downloading data, will be accounted against the project quota, or my own quota?
  2. How can I see my current "quota project"? I see that I can set it with gcloud auth application-default set-quota-project, but how can I get it?

Best Answer

  1. This does mean that the quota from the project ID on the ADC file will be used rather the one you set with the command gcloud config set project XXX.

  2. There is available guide on how to view and manage your project's quota.

There is difference between the 2 commands base on the documentation:

gcloud auth login - generates user credentials for you to authenticate and be authorized to access your Google Cloud resources and do a view or modification, depending on your roles and permissions.

gcloud auth application-default login - this generates user credentials specifically for local documentation.

To check if an ADC file exist in your host, you can view this directory:

$HOME/.config/gcloud/application\_default\_credentials.json

Either you make configuration on the file the same with your current config via gcloud auth login or backup and temporarily move the file, this depends on the situation on how are you using the ADC file. You can check the available docs.

Related Topic