wet-egg-6347
08/28/2020, 7:47 PMpulumi.NewStackReference(...).GetProvider("pg-provider-id")
however, the consumer stack also needs raw connection info (host, port, etc) in order to inject that info into kubernetes pods, so that the pods can connect to pg at runtime. this is where it gets tricky...
• is there some way to get postgresql.ProviderArgs
out of the provider, during pulumi runtime?
• is there some easy way to marshal/unmarshal postgresql.ProviderArgs
, so that i can use a string stack export? keep in mind there are no pulumi types (input/output) defined for postgresql.ProviderArgs
-- that's just a struct containing a bunch of pulumi types
tia 🙏lemon-agent-27707
08/28/2020, 8:00 PMApply
?
https://www.pulumi.com/docs/intro/concepts/programming-model/#apply
You can use a combination of All
and Apply
to transform a bunch of pulumi properties (pulumi.String
, <http://pulumi.Int|pulumi.Int>
, etc) into a new output value that is exportable.wet-egg-6347
08/28/2020, 8:02 PMlemon-agent-27707
08/28/2020, 8:37 PMwet-egg-6347
09/28/2020, 8:11 PM