https://pulumi.com logo
h

helpful-processor-86468

05/12/2020, 2:51 PM
How can I get outputs that are nested in some structure?
service.Template.Metadata()
I'm getting an error
applier must have 1 input parameter assignable
w

white-balloon-205

05/13/2020, 4:35 AM
This is in Go, right? Can you share a little more context on the code? Which cloud provider is this? Also - which version of Pulumi libraries are you using?
h

helpful-processor-86468

05/13/2020, 6:24 AM
This is gcp and it's simple cloudrun service
Copy code
service, err := cloudrun.NewService(.....)
if err != nil { return err }
ctx.Export("gateway-metadata", service.Template.Metadata())
Copy code
<http://github.com/pulumi/pulumi-gcp/sdk/v3|github.com/pulumi/pulumi-gcp/sdk/v3> v3.0.1
<http://github.com/pulumi/pulumi/sdk/v2|github.com/pulumi/pulumi/sdk/v2> v2.0.0
I want to get image out as exported value.