Is there a way to output a list of objects as a st...
# general
f
Is there a way to output a list of objects as a stack output or even a list of already serialized josn strings? I have a component that has a bunch of properties that are outputs which then I want to have the stack return each instance of that components output in a list.
Ah figured out my first issue. I need to call Output.All to make sure the values are available. That's why some were missing. I did find out you cannot return an object itself. Looks like there is an open issue for this. https://github.com/pulumi/pulumi/issues/3690 My workaround is to just serialize the object into a json string and then the sack that needs it can just deserialize the object.
👍 1