-
Hello, so that to deploy "general" stack: terraform --var-file=../proj.tfvar --var-file=general.tfvar |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @az-z There's no explicit support but you can achieve the same behavior using Let's say you have the tree below:
then in the
The code above will compute the set of Then have a look in the run below (just printing the environment variable):
Then, for any Does it solve your problem? We at Mineiros prefer to have the configuration as Terramate globals, so we have better control and reuse them across all stacks. We don't use TFVARs but generate the globals whenever needed, but using core Terramate features you should be able to come up with different strategies. |
Beta Was this translation helpful? Give feedback.
Hi @az-z
There's no explicit support but you can achieve the same behavior using
globals
andterramate.config.run.env
. Example below:Let's say you have the tree below:
then in the
/terramate.tm.hcl
you add this configuration: