gorgeous-pillow-13604
02/14/2025, 5:55 PMpulumi up
with a dynamic yaml - meaning some of the values in the pulumi.staging.yaml
are injected by the releases process (e.g., the accounting_image_tag is pulled from another system and injected into the yaml before the pulumi up):
config:
application:maintenance_mode: false
application:ephemeral: false
application:domain: company.dev
application:accounting_image_tag: v25.02.01-rc
Then, sometime in the future, I want our CI/CD process to do another pulumi up
with all the same values as the last successful pulumi up
except making the maintenance_mode value set to true
instead of false
.
What are the suggestions for the best way to account for this? Essentially, I want to run a pulumi up
with the same yaml context as the last pulumi up
but with one variable value changed.
Thanks for the help.
~jamesfaint-elephant-30784
02/14/2025, 6:04 PMgorgeous-pillow-13604
02/14/2025, 6:22 PMmodern-zebra-45309
02/14/2025, 6:51 PMgorgeous-pillow-13604
02/14/2025, 6:52 PMmodern-zebra-45309
02/14/2025, 6:56 PMpulumi up
does not change.dry-keyboard-94795
02/14/2025, 7:11 PMdry-keyboard-94795
02/14/2025, 7:13 PMgorgeous-pillow-13604
02/14/2025, 7:24 PMpulumi config refresh,
which will create the flattened pulumi.[stack_name].yaml file, which can then update the application:maintenance_mode value to true. No S3 or other persistence necessary.faint-elephant-30784
02/14/2025, 7:39 PMpulumi config refresh -s your_yaml_file_for_the_stack.yaml
I think that would work then you just set your stacks to be your different yaml files if that makes sense.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by