https://pulumi.com logo
#general
Title
# general
p

proud-art-41399

02/29/2024, 5:03 PM
Hi, I'd like to ask if it's safe to edit stack config file directly, without using
pulumi config set
. The reason is that one of the keys I'd like to set is a deeply nested object and I'd like to avoid many
pulumi config set --path
commands to actually set the value. What I'm asking is basically if editing the config file directly and then using
pulumi up
leads to the same result as using
pulumi config set
. Or is setting the config values a local operation anyway? Thanks
l

lively-crayon-44649

02/29/2024, 5:46 PM
As far as I know it's safe -- we do it all the time 😂 Of course with secrets you will want to use
set --secret --path
etc.
When you use
config set
Pulumi will for instance reorder object keys alpahbetically, so you might find that you get diffs even though none of the values have changed, is the only gotcha that springs to mind. Pulumi won't run spurious actions, but Git will say the files are different, for instance.
p

proud-art-41399

02/29/2024, 6:40 PM
Cool, thanks for assurance 🙂
e

echoing-dinner-19531

02/29/2024, 7:54 PM
The file is designed to be safe to manually edit. Secrets are the only thing you need to use
config set
for.
p

proud-art-41399

03/01/2024, 5:14 AM
Perfect, thanks for information guys 🙂