sparse-intern-71089
05/02/2021, 8:27 AMlemon-agent-27707
05/03/2021, 12:30 AMpulumi.Run()
this is not true for python. You should just be able to create a function that creates your resources and call that function from within both your automation api program and your CLI program
2. Not sure I fully understand. Would you mind providing a little more detail? With Automation API you can run any code you want as a part of the automation program. You can read config from a shared stack, set config/secrets on the current stack programmatically, and even do things like read values from AWS KMS or Azure Key Vault.handsome-state-59775
05/03/2021, 6:49 AMbase_stack = auto.select_stack(
stack_name=base_stack_name,
work_dir=str(work_dir),
)
base_config_all = base_stack.get_all_config()
new_config_all = ### MUTATE MAP
new_stack.set_all_config(new_config_all)
Do we have any high level functions for mutating ConfigMap/ConfigValue?lemon-agent-27707
05/03/2021, 3:17 PMDo we have any high level functions for mutating ConfigMap/ConfigValue?no