Skip to content

Outputting Resources #7568

Discussion options

You must be logged in to vote

Just for completeness: Exporting an entire resource gets a bit cumbersome as it's JSON-serialized and is generally fairly large. That's why we recommend exporting each value individually, but it certainly can be done as noted above (and I completely get why it's awkward to export each value when you get into more practical builds). However, if you want to reference values across stacks, I think you're looking for stack references. Pulumi uses stack references to share values to other stacks, letting you reference the values elsewhere in your code.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mattstratton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants