Cross stack reference #8715
Replies: 2 comments 7 replies
-
Hi there! In the pulumi.export("output_from_core_stack", f"{output_value_from_code}") In the import pulumi
stack_ref = pulumi.StackReference("trmz-infrastructure-state/abc-core/core")
pulumi.export("output_I_want", stack_ref.get_output("output_from_core_stack")) Note that the Does that help make stack references clearer? For the organization, are you asking about how to organize a self-service backend? I'm not clear what you're trying to figure out for the s3 bucket organization. |
Beta Was this translation helpful? Give feedback.
-
Confirmed in #3395. 🎉 (We don't use Pulumi on the project I'm currently working on so I can't test, but it would be good to know 😁 ) |
Beta Was this translation helpful? Give feedback.
-
Hi there!
I would like to use StackReference between projects. Currently I have two projects who shares the same s3 bucket. First project can be found under
s3://trmz-infrastructure-state/abc-core/core
path and second one unders3://trmz-infrastructure-state/abc-core/database
. How can takes an output from the firstcore
project and import it todatabase
project. The documentation seems to very unclear to me and still don't know how should I organize the Pulumi project into the folders on the s3 buckets to able to to get outputs from another stack. Any ideas 💯 ?Beta Was this translation helpful? Give feedback.
All reactions