https://pulumi.com logo
Title
a

ambitious-father-68746

03/20/2023, 11:36 AM
Hi, is there a way to check if an output exists on another stack?
r

rhythmic-rainbow-38499

03/20/2023, 3:28 PM
I believe "StackReference" is how you lookup a stack, and then you can retrieve outputs from that stack and determine if hte output exists.
a

ambitious-father-68746

03/20/2023, 5:33 PM
Yes, I can get the outputs from different stacks, but that was not my question. How can I know if a particular output exists or not? Even the nulls that GetOutput returns are Outputs, so I can't use them in an if statement.
s

steep-toddler-94095

03/20/2023, 6:26 PM
unfortunately there isn't a way without having to check within an
apply