Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow referring to output from another environment #315

Open
tsharks opened this issue Jun 26, 2023 · 0 comments
Open

Allow referring to output from another environment #315

tsharks opened this issue Jun 26, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tsharks
Copy link

tsharks commented Jun 26, 2023

Summary

It would be great to make it possible to refer in a .tfvars to outputs from a stack deployed in another environment (in the same project).

Motivation

That would enable sharing a stack between environments. Common use cases are to reuse baseline stacks that deploy possibly expensive resources:

  • Sharing a VPC (with NAT Gateways, VPC endpoints, etc)
  • Sharing a database

This was asked a while ago on Stackoverflow : https://stackoverflow.com/questions/64874245/how-to-make-the-terraspace-stack-common-for-a-few-environments.

@tongueroo tongueroo added help wanted Extra attention is needed enhancement New feature or request labels Jun 26, 2023
@tsharks tsharks changed the title Allow refereing to output from another environment Allow referring to output from another environment Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants