https://pulumi.com logo
#pulumi-deployments
Title
# pulumi-deployments
f

full-dress-10026

06/16/2023, 3:26 PM
How do you set stack config values when creating a deployment? Adding
pulumi config
cli calls in the pre-run commands?
l

lemon-agent-27707

06/16/2023, 4:06 PM
Yup, that is the only way at the moment. We’ll likely add first class support at some point. You can also use env vars to control behavior.
f

full-dress-10026

06/16/2023, 4:07 PM
Seems fine. Biggest gap I can see is encoding secret values in plaintext logs.
Obvi first class support is preferred 🙂
l

lemon-agent-27707

06/16/2023, 5:16 PM
There is secrets redaction in the logs, but we do need to know that a value is secret in order for that to work. You could set an env var in deployment settings and mark it as secret, and then reference that env var in the pre run commands and there should be no plaintext secrets in any logs.
Being able to mark a pre run command as secret does seem reasonable though. Feel free to open feature requests as you identify gaps github.com/pulumi/pulumi-cloud-requests/issues/new