When using Pulumi Deploy with a Pulumi Esc environ...
# general
j
When using Pulumi Deploy with a Pulumi Esc environment set, I am getting the error can't load credentials (for GCP) but I'm able to use this locally
w
can you share how you are setting the esc env?
j
I have this:
Copy code
imports:
  - gcp/production
values:
  environmentVariables:
    GOOGLE_OAUTH_ACCESS_TOKEN: ${gcp.login.accessToken}
    GOOGLE_PROJECT: ${gcp.login.project}
tried to follow what was in the docs
but I'm guessing the
environmentVariables
aren't being set automatically when using Pulumi Deploy
is there a way to get them in automatically or do I need to add a prerun command perhaps
figured this was a common flow
w
This is definitely a common flow, let me confirm if the
esc open
happens for you or if you need to run that command
Ok I think we figured it out
It seems that the token you are configuring in the deployment does not have access to open both esc envs (you need perm to open the one above and the one its importing)