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

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

Open
johnlister opened this issue Sep 12, 2022 · 1 comment
Open

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

johnlister opened this issue Sep 12, 2022 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@johnlister
Copy link
Contributor

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 :)

@johnlister johnlister added the bug Something isn't working label Sep 12, 2022
@tongueroo tongueroo added good first issue Good for newcomers help wanted Extra attention is needed labels Sep 13, 2022
@fl-max
Copy link

fl-max commented Jul 18, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants