boltops-tools / terraspace

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

Multiple tfvars files for each env. #260

Open RiddlerKnight opened 2 years ago

RiddlerKnight commented 2 years ago

Summary

Support separating tfvars file in each env.

Motivation

Sometimes, there are enormous lines in a tfvars file. it's quite difficult to read.

So, this feature should be structured like this.

|--app
    |--modules
    |--stacks
       |--stack1
           |--tfvars
               |--base
                  a.tfvars
                  b.tfvars
               |--dev
                 a.tfvars
                 b.tfvars
johnlister commented 2 years ago

Not sure if this used to work or is related to this issue Issue 267:Environment folders ignored

RiddlerKnight commented 2 years ago

Not sure if this used to work or is related to this issue Issue 267:Environment folders ignored

Yes, sometimes, I have many modules in a stack. It would be cleaner if terraspace can read multiple file in a env layer.