When developing locally, we recommend that you install the Google Cloud SDK and then authorize access with a user account. Next, Pulumi requires default application credentials to interact with your Google Cloud resources, so run auth application-default login command to obtain those credentials:

$ gcloud auth application-default login

To configure Pulumi to interact with your Google Cloud project, set it with the pulumi config command using the project's ID:

$ pulumi config set {{ $type }}:project your-gcp-project-id

You may also set your Google Cloud Project via environment variable (listed in order of precedence):

  • GOOGLE_PROJECT
  • GOOGLE_CLOUD_PROJECT
  • GCLOUD_PROJECT
  • CLOUDSDK_CORE_PROJECT
$ export GOOGLE_PROJECT=your-gcp-project-id

Updated

Was this page helpful?