Skip to content

How to pass outputs from different stacks? #525

Answered by katcipis
fenos asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @fenos,

Thanks for you interest in Terramate and for taking the time explaining your issue.

Sorry if I misunderstood the question, but if you are asking about getting values from Terraform outputs from another stack this is not supported by Terramate in the moment. At least not natively in a seamless way.

Our approach is to use globals as a way to share data accross stacks so you usually don't need the outputs. You can have globals defined on dev/global/network and then import those globals to use in the stacks, instead of loading them from outputs.

For scenarios where you need something that is only defined at plan/apply time you can define globals that are used to build the resource …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by fenos
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants