echoing-noon-85874
12/07/2024, 11:36 AMpulumi:pulumi:Stack testproject-test-dev 1 warning
pulumi:providers:gcp default_7_32_0 **failed** 1 error
Diagnostics:
pulumi:pulumi:Stack (testproject-test-dev):
warning: failed to get regions list: failed to create compute service: google: could not find default credentials. See <https://cloud.google.com/docs/authentication/external/set-up-adc> for more information
pulumi:providers:gcp (default_7_32_0):
error: rpc error: code = Unknown desc = failed to load application credentials.
To use your default gcloud credentials, run:
`gcloud auth application-default login`
See <https://www.pulumi.com/registry/packages/gcp/installation-configuration/> for details.
Expanded error message: Attempted to load application default credentials since neither `credentials` nor `access_token` was set in the provider block. No credentials loaded. To use your gcloud credentials, run 'gcloud auth application-default login'. Original error: google: could not find default credentials. See <https://cloud.google.com/docs/authentication/external/set-up-adc> for more information
Outputs:
Resources:
~ 1 updated
1 unchanged
Duration: 1m20s
I am getting this error. I didn't use gcloud auth activate-service-account --key-file=/gcp_key.json because i want to have different keys for different gcloud resources ( like cloud build, or compute). I just use separate pulumi gcp.NewProvider
to create providers based on the resources. What can i do here ?modern-zebra-45309
12/09/2024, 1:55 PMgcp.compute.getRegions()
(docs) in your code but did not specify which provider should be used for that call (via the resource options), which leads to Pulumi defaulting back to the default GCP provider which you haven't configured.modern-zebra-45309
12/09/2024, 1:57 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by