sparse-intern-71089
01/16/2024, 4:59 PMsalmon-account-74572
01/16/2024, 11:12 PMfast-vase-27755
01/16/2024, 11:22 PMsalmon-account-74572
01/16/2024, 11:33 PMfast-vase-27755
01/17/2024, 12:04 AMsalmon-account-74572
01/17/2024, 12:46 AMfreezing-vase-18205
01/17/2024, 8:33 AMfreezing-vase-18205
01/17/2024, 8:35 AMcfg = pulumi.Config()
my_input = cfg.require_int("foo")
but for an input that is shared across the modules this would result in a code duplication.
Instead one can create config.py
(in their chosen lang) that reads all inputs and then consumers of it can import the resulting variable.
All there is to say that these tricks are much welcome to be sourced by the pulumi authors offering (opinionated) approach to scalable and structured pulumi programsfew-rainbow-35517
01/18/2024, 10:47 PMfast-vase-27755
01/18/2024, 10:50 PMfew-rainbow-35517
01/18/2024, 10:54 PMfew-rainbow-35517
01/18/2024, 10:55 PMfast-vase-27755
01/18/2024, 10:55 PMfew-rainbow-35517
01/18/2024, 10:56 PMfew-rainbow-35517
01/18/2024, 10:57 PMpulumi.Input
and pulumi.Output
fast-vase-27755
01/18/2024, 10:59 PMyaml
(via spruce) but I do not think I will go with Yaml for more complex infrasfast-vase-27755
01/20/2024, 4:24 PM