curved-dream-12503
12/04/2022, 9:50 PM- step:
name: Update Infrastructure
oidc: true
deployment: production
script:
- *deps
- echo $BITBUCKET_STEP_OIDC_TOKEN > /tmp/oidc-token.txt
- export GOOGLE_CREDENTIALS=credential-config.json
- pulumi up --yes --cwd ${PULUMI_WORKING_DIRECTORY} -s ${PULUMI_STACK_NAME}
When running this pipeline I get the following error:
Diagnostics:
gcp:serviceAccount:Account (serviceAccount):
error: 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.
Is pulumi supporting oidc workload federated service accounts?--cwd
flag it cannot find the credential file anymore so lesson always put the full path ie GOOGLE_CREDENTIALS=${PWD}/credential-config.json