boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
674 stars 46 forks source link

Allow referring to output from another environment #315

Open tsharks opened 1 year ago

tsharks commented 1 year ago

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:

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