https://pulumi.com logo
#automation-api
Title
# automation-api
a

abundant-solstice-21589

04/26/2022, 6:29 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}'
g

green-musician-49057

05/04/2022, 10:21 PM
I'm trying to do something similar, but in Typescript. Did you figure this out?
3 Views