https://pulumi.com logo
Title
l

limited-rainbow-51650

10/05/2020, 8:36 AM
How should I set up structured configuration via the automation API? I have the following snippet in my code:
stack.SetConfig(ctx, "osimis.orthanc:config.name", auto.ConfigValue{Value: customer})
	stack.SetConfig(ctx, "osimis.orthanc:config.domain", auto.ConfigValue{Value: fmt.Sprintf("<http://%s.orthanc.osimis.io|%s.orthanc.osimis.io>", customer)})
	stack.SetConfig(ctx, "osimis.orthanc:config.version", auto.ConfigValue{Value: version})
In my stack, I retrieve the settings via:
const demoConfig = new pulumi.Config('osimis.orthanc').requireObject<orthanc.OrthancServiceConfig>('config')
But when running my automation program, I still have the error:
error: Missing required configuration variable 'osimis.orthanc:config'
https://www.pulumi.com/docs/intro/concepts/config/#structured-configuration