brash-gigabyte-81569
10/27/2023, 4:24 PMpulumi-go-provider
? I am having a soul crushing experience trying to get a component that outputs a complex type (eks.Cluster) from one component and then takes that complex type as an input into another component. Error is 2 UNKNOWN: failed to copy inputs for {...}: copying input "eksCluster": unmarshaling value: expected a eks.Cluster, got a string
when it goes to create the second component that makes use of the output. Related notes: the provider is written in go, the consumer is written in typescript, and consuming with yaml works fine.ancient-policeman-24615
11/02/2023, 12:42 AMpulumi-go-provider
framework)
• You can successfully consume the provider you wrote in Pulumi YAML.
• You cannot consume the provider you wrote in typescript because you get an unmarshalling error.
Does that sound right?
I’d love to see a repro of this, since everything you described should be possible.brash-gigabyte-81569
11/02/2023, 1:24 PMancient-policeman-24615
11/14/2023, 7:28 PMbrash-gigabyte-81569
11/14/2023, 7:32 PMancient-policeman-24615
11/17/2023, 8:05 PMRegisterResource
block: https://github.com/pulumi/pulumi-cloudflare/blob/cf179f8ec0138d1b2712d979f854a0e317ce826e/sdk/go/cloudflare/hostnameTlsSetting.go#L317-L325. That is the only thing I can think of that involves global initialization for deserialization.brash-gigabyte-81569
11/17/2023, 8:08 PMimport "@pulumi/aws";
instead of import * as aws from "@pulumi/aws";
on the main stack and it will ensure that the provider is added without needing to create an aws resource directlyancient-policeman-24615
11/17/2023, 8:52 PM