https://pulumi.com logo
Title
a

abundant-solstice-21589

04/26/2022, 6:24 AM
Hello everyone, could you tell me how to achieve the following structured config by using Pulumi GO sdk with Automation API:
config:
  myNamepace:myStorage:
    name: myStorageName
    size: 50
I have tried the following:
jsonString := `{"name": "test", "size": 100}`
err = stack.SetConfig(ctx, "myNamepace:myStorage", auto.ConfigValue{
        Value:  jsonString,
	    Secret: false,
})
I got the following result which is not what I want:
config:
  myNamepace:myStorage: '{"name": "test", "size": 100}'