Is it possible to use/retrieve the output value of...
# general
h
Is it possible to use/retrieve the output value of one stack in another stack ?
w
Currently you would need to do something manual like:
Copy code
pulumi config set <key> $(pulumi stack output <outname> --s sourceStack)
We're actively working on an alternative where you could do something more like
pulumi.getStack("lukehoban/mystack").output["outname"]
from within a Pulumi program to retrieve the outputs directly from another stack you have access to. https://github.com/pulumi/pulumi/issues/109 is tracking this.
h
Thanks for the answer ! And eager to see this feature landing 😀