sparse-intern-71089
07/15/2022, 7:42 PMbored-oyster-3147
07/15/2022, 10:25 PMbored-oyster-3147
07/15/2022, 10:28 PMlemon-church-28946
07/15/2022, 10:34 PMbored-oyster-3147
07/15/2022, 10:36 PMlemon-church-28946
07/15/2022, 10:45 PMpulumi.automation.Stack
instance within the Pulumi program itself. That seems to interact with the stack's YAML file when running Stack.set_config
and Stack.get_config
.
import pulumi
from pulumi import automation as auto
from pathlib import Path
# bad ideas
stack = auto.select_stack(
stack_name=pulumi.get_stack(),
work_dir=str(Path(__file__).parent.absolute()))
# set a config value
stack.set_config('stuff', auto.ConfigValue('things'))
# log the newly set value
<http://pulumi.info|pulumi.info>(stack.get_config('stuff'))
It's probably working because I'm more-or-less using it as a method of sending output back to the automation program (less the aws:region
config).
Definitely heeding your advice though.lemon-church-28946
07/15/2022, 10:47 PMbored-oyster-3147
07/15/2022, 10:48 PMbored-oyster-3147
07/15/2022, 10:49 PMlemon-church-28946
07/15/2022, 11:03 PM