# golang


03/07/2024, 9:45 PM
I see lots of discussion on programmatically setting stack configs, in particular around default providers, for example see, 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, is that right?
Answering my own question, setting this at stack creation seems to be the way to go.