boltops-tools / terraspace

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

Terraspace layering in v2 doesn't scan environment folders #267

Open johnlister opened 2 years ago

johnlister commented 2 years ago

When running v1, Terraspace would scan environment folders as per the documentation, for example if we have a tfvars/development/base.tfvars file in our stack and TS_ENV was set to development then it would include the contents during build. In v2 however even with the layering mode set to provider Terraspace doesn't scan the folder, it now looks for a file called development.tfvars only. This has been confirmed by enabling the debug environment variables, etc

Note I have set TS_EXTRA just in case this triggered alternate behaviour

My Environment

Terrapace: 2.2.1 Ubuntu 20 running under WSL Terraform 1.2.9

Expected Behaviour

tfvars files in environment folders included in the configuration as per documentation

Current Behavior

tfvars files in environment folders ignored.

Step-by-step reproduction instructions

See above

Solution Suggestion

Update logic to handle environment folders or update documentation :)

fl-max commented 1 year ago

This may be related. Being new to the project, I thought this was a Documentation issue but perhaps it is actually a Bug.