Anyone have insight as to how to pass config value...
# general
h
Anyone have insight as to how to pass config values (or, well, any info) into stacks when using the automation API?
Copy code
stack, err := auto.UpsertStackInlineSource(ctx, fqsn, config.PulumiProjectName, istack.RunFunc)
	if err != nil {
		l.Fatal("Failed to create or select stack", zap.Error(err))
	}

	err = stack.SetConfig(ctx, "envType", auto.ConfigValue{
		Value:  string(envType),
		Secret: false,
	})
	if err != nil {
		l.Fatal("Failed to set config", zap.Error(err))
	}

	err = stack.SetConfig(ctx, "stackName", auto.ConfigValue{
		Value:  istack.Name,
		Secret: false,
	})
	if err != nil {
		l.Fatal("Failed to set config", zap.Error(err))
	}
I can seemingly set the config on the stack but the
RunFunc
doesn't get the values:
Copy code
stackName, ok := ctx.GetConfig("stackName")
	fmt.Println(stackName, ok) // prints "", false
	envType, ok := ctx.GetConfig("envType")
	fmt.Println(envType, ok) // prints "", false