How do you set stack config values when creating a...
# pulumi-deployments
f
How do you set stack config values when creating a deployment? Adding
pulumi config
cli calls in the pre-run commands?
l
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
Seems fine. Biggest gap I can see is encoding secret values in plaintext logs.
Obvi first class support is preferred 🙂
l
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