purple-application-23904
11/17/2021, 9:15 PMexport
? I've got helper functions to help wrap some common group of resources, but by only using export
I can't programmatically export parts of those resources. The other languages seem to have this (eg. python has pulumi.export(name, value)
)billowy-army-68599
11/17/2021, 9:32 PMexport const
will do the same thingpurple-application-23904
11/17/2021, 9:36 PMMap<string, pulumi.Output<any>>
could I export that?export const vars = output
)billowy-army-68599
11/17/2021, 9:38 PMpurple-application-23904
11/18/2021, 6:08 PMvars
at all)orange-kite-80991
11/21/2021, 7:37 AMpurple-application-23904
11/22/2021, 5:25 PMconsole.log
the value I can see the values, but at the end there's no output.const cloudLib = new ...
cloudLib.createWebsocketGateway(...)
export const vars = cloudLib.outputs
console.log("vars", vars)
where outputs is
outputs: Map<string, pulumi.Output<any>> = new Map();
export const vars = Array.from(cloudLib.outputs).reduce((obj, [key, value]) => (
Object.assign(obj, { [key]: value })
), {});
So it looks like it just doesn't like Map
but object
is okay