This message was deleted.
s
This message was deleted.
e
I believe the
Pulumi.<stack>.yaml
should not be committed
You should commit it if others are using the same stack.
Should I set the each config from environment variable using
pulumi config set/set-all
command?
If you've just got an envvar that controls things you could just read the envvar in your pulumi program, it doesn't have to go via config.
If so How should I set the
secretsprovider
and the
encryptedkey
?
Those should normally be set for you on stack initialisation.
l
Thanks @echoing-dinner-19531
w
Hi Fraser ! Please let me know if a separate post is required. But when you said committed, is it possible for Pulumi to look for the
Pulumi.<STACK>.yaml
file from another location say S3 bucket or Github? Something like this perhaps
Copy code
pulumi preview -s STACK_NAME --config-file <s3://pulumi-backend-aws/stack_files/Pulumi.STACK_NAME.yaml>
e
Not really. There is the
stackConfigDir
option in Pulumi.yaml (https://www.pulumi.com/docs/reference/pulumi-yaml/) but that's just a folder path (and the docs do say relative to Pulumi.yaml, although I suspect an absolute path there would happen to work)
1
w
Oh k. The use case was to try to save the STACK file somewhere while using a self managed backend.
Just found out, there is a flag called
--show-config
available with both pulumi up and pulumi preview. So saving the staet file should suffice. Thanks for the stackConfigDir advice too Fraser 🙂 I am going to use that too in my project
l
Hi Sushant & Fraser, I'm wondering if it is ok to make
encryptionSalt
value visible in
Pulumi.<STACK>.yaml
file in a public git repository.
e
Salts are not secrets, so yes this should be ok
l
Thanks a lot @echoing-dinner-19531