gorgeous-minister-41131
11/04/2022, 1:41 AMset_config()
method doesn't support using a path key?
stack.set_config("pulumi:disable-default-providers[0]", auto.ConfigValue("*"))
Results in a literal config with [0] in its name.. but if I use --path on the cli I can force it to a list of string... is there a more correct way to do this?? setting complex types via automation?set_path_config
method or something.billowy-army-68599
11/04/2022, 3:12 AMgorgeous-minister-41131
11/04/2022, 4:03 PMdef disable_default_providers(stack: auto.Stack) -> None:
"""
Runs the pulumi cmd to disable all default providers.
"""
stack._run_pulumi_cmd_sync(
args=[
"config",
"set",
"--path",
"pulumi:disable-default-providers[0]",
"*",
]
)
I wonder if it makes sense to open up the _run_pulumi_cmd_sync
method to be 'public' for custom use-cases where the context of the stack would be beneficial, but there's no built in support for handling some of the CLI components.