-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Improve handling of TF_INPUT
env variable
#1042
Comments
@Nuru can you share your similar requirements |
I would be open to changing the warning to a debug level. |
From @Nuru:Other variables that should not be warned about:
Possible solutions (not mutually exclusive)
Note that lists will have to allow for at least minimal pattern matching to handle |
Describe the Feature
In our CI we have the environment variable
TF_INPUT=false
set to avoid any stalls due to unset variables and fail instead.This was no issue in our current version but in v1.160.2 we now get the warning
There should be a way to handle this one variable more graceful since it looks like this is a generic check at https://github.com/cloudposse/atmos/blob/v1.160.2/internal/exec/terraform.go#L222 but no other part of the code makes use of this variable.
Expected Behavior
No warning about
TF_INPUT=false
.Use Case
Avoid any hangs due to terraform waiting for input in a CI environment (or a local dev environment where I prefer it to fail instead of asking me pointless questions).
Describe Ideal Solution
Add an allowlist for know-good variables and maybe their values.
TF_INPUT
or maybeTF_INPUT=false
should be such a case.Alternatives Considered
No response
Additional Context
I also get a warning about
TF_CLI_CONFIG_FILE
since I like my system to follow the xdg spec but haven't looked into that one in detail.The text was updated successfully, but these errors were encountered: