sparse-intern-71089
10/12/2021, 10:02 AMgreat-sunset-355
10/12/2021, 10:06 AMstack.config_set() and then stack.up() to propagate the changes to the remotedry-sugar-63293
10/12/2021, 10:36 AMlittle-summer-88406
10/12/2021, 10:40 AMbored-oyster-3147
10/12/2021, 2:53 PMpulumi config set commandslittle-summer-88406
10/13/2021, 8:06 AMbored-oyster-3147
10/13/2021, 1:07 PMlittle-summer-88406
10/13/2021, 1:08 PMbored-oyster-3147
10/13/2021, 1:14 PMgreat-sunset-355
10/14/2021, 11:37 AMyou shouldn't need to call up to propagate config with automation api. Just setting it should suffice, because under the hood it is just using the pulumi config set commands
As far as I know, this is actually not true. It only interacts with the local file until you ask for refresh or up. (IRRC we've already had this discussion before :))bored-oyster-3147
10/14/2021, 1:08 PMconfig set commands right away. See here https://github.com/pulumi/pulumi/blob/562c9da008e29066451be157c80579f6f387a22d/sdk/dotnet/Pulumi.Automation/LocalWorkspace.cs#L521
For both SetConfig and SetAllConfig we are immediately invoking CLIgreat-sunset-355
10/14/2021, 1:11 PMfrom pulumi import automation as auto
from pathlib import Path
cwd = Path.cwd()
stack = auto.select_stack('staging', work_dir=str(cwd))
stack.set_config('var', auto.ConfigValue("value"))
It only sets the value locally in the file until I run stack.up
Could this be a regression between languages?bored-oyster-3147
10/14/2021, 1:11 PMgreat-sunset-355
10/14/2021, 1:11 PMbored-oyster-3147
10/14/2021, 1:12 PMbored-oyster-3147
10/14/2021, 1:13 PMgreat-sunset-355
10/14/2021, 1:16 PM.NET SDK executes CLI, while python SDK may be doing something else?great-sunset-355
10/14/2021, 1:16 PMbored-oyster-3147
10/14/2021, 1:20 PMgreat-sunset-355
10/14/2021, 1:23 PMpulumi config set via CLI it's set on both, local and remotegreat-sunset-355
10/14/2021, 1:23 PMbored-oyster-3147
10/14/2021, 1:24 PMred-match-15116
10/14/2021, 3:09 PMpulumi config set and therefore the relevant commands via any of the automation API sdks only set the configuration in your Pulumi.[stack].yaml file. To propagate it to state and to remote, you must run up or refresh.red-match-15116
10/14/2021, 3:12 PMsetConfig works compared to pulumi set config because as @bored-oyster-3147 pointed out, it just calls the CLI under the hood.bored-oyster-3147
10/14/2021, 3:34 PM