https://pulumi.com logo
#general
Title
# general
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:
Copy code
config:
  myNamepace:myStorage:
    name: myStorageName
    size: 50
I have tried the following:
Copy code
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:
Copy code
config:
  myNamepace:myStorage: '{"name": "test", "size": 100}'
3 Views