When I run: ```pulumi preview '--config=gcp:access...
# general
f
When I run:
Copy code
pulumi preview '--config=gcp:accessToken=INVALID'
Pulumi places the config value in my config file. Why is this? I just want to override it for this run, not always.
And is there another way to just override it for this run?
l
@full-lamp-64265 preferrably remove the access token from the stack config file. If you ran
gcloud auth login
on your system ahead of
pulumi preview/up
, our GCP provider should pick up the credentials from your local system.
f
Ringo I don't want it in the stack config file, but I want to set it from the CLI, I would actually prefer to set it from the environment, but setting it from the CLI will be better than nothing
but I don't get why preview will update my config file
This seems to me like undesired behaviour
Is there some rationale behind it?
The docs certainly does not suggest this is what will happen
l
Pulumi infrastructure code should never update the stack config file (
Pulumi.<stackname>.yaml
).
f
Okay, but then why does the command I share update the stack config file?
If it is not intended I will file a bug report
l
Checking with our engineers on expected behavior.
@full-lamp-64265 for the moment, I would like to ask you to file a bug report. Preferably add a sequence of steps to reproduce this. https://github.com/pulumi/pulumi/issues