https://pulumi.com logo
Title
c

crooked-pillow-11944

09/24/2021, 1:49 AM
Is there a way to get all the outputs of a stack from within another stack without knowing the output names/ids?
d

dazzling-manchester-16947

09/24/2021, 7:02 AM
that would also solve my problem (but i know the names/ids actually)
c

crooked-pillow-11944

09/27/2021, 4:31 PM
Bump - Is there a way to use
Output.all
with Stack References?
✔️ 1
e

echoing-motherboard-16358

09/27/2021, 4:57 PM
I’m interested in your use-case. We regularly export lists, I’ve never needed to introspect stack outputs.
g

gentle-diamond-70147

09/27/2021, 5:16 PM
Getting all outputs of a stack is not currently possible. Mind opening an issue at github.com/pulumi/pulumi with your use case?
c

crooked-pillow-11944

09/27/2021, 5:34 PM
I figured out a way around this. Basically I have a set of dynamic resources/infra that I use to auto-provision an AWS CodePipeline. I'm using pulumi automation to integrate of set of stacks. Adding a resource/infra is a matter of adding the stack to a subfolder then re-running the dependent stacks to get the updated IAM and S3 buckets for CodePipeline. The code to deploy is https://github.com/kjenney/pulumi-bootstrap This is the code used to pull in stack references for the pipeline: https://github.com/kjenney/pulumi-bootstrap/blob/main/infra/pipeline/main.py#L21-L33
👍 2