https://pulumi.com logo
#golang
Title
# golang
f

few-dress-15522

03/07/2024, 9:45 PM
I see lots of discussion on programmatically setting stack configs, in particular around default providers, for example see https://github.com/pulumi/pulumi/issues/14279, then follow all the links. But I don’t see anything that lets me set a structured value, just strings. Am I missing something obvious?
Copy code
// TODO: this isn't right
	// s.SetConfig(ctx, "pulumi:disable-default-providers[0]", auto.ConfigValue{Value: "aws"})
On a possibly related note, when I did disable default providers, then passed a ProviderMap to my Component, it complained that the component was not using an explicit provider… sounds like the equivalent of https://github.com/pulumi/pulumi/issues/13071, is that right?
Answering my own question, setting this at stack creation seems to be the way to go.