-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
TF_CLI_ARGS with -var-file causes terraform plugin error. #14847
Comments
Confirmed this still exists in 0.9.8 |
It still exists in 0.9.10. All I wanted was to disable colors when running on CI - |
I was about to open an issue, but I found that one. Here the information:
|
We are having this issue as well. Granted it's |
confirmed against 0.10.6 |
I am having the same issue in Terraform v0.10.7 |
Happening in v0.11.2 when the terraform script contains provisioner 'file' or 'remote-exec' and with |
This is what I am doing as a workaround, loading this in my
If you have a better suggestion ? |
Confirmed also in v0.11.7 |
Looks like I can workaround this problem using the command-specific variations...
|
It also affects Btw, @lorengordon's workaround worked for me. |
Setting the CLI args per commands seems to be fine :
|
This is opened since 2017, is there any roadmap? |
Still happening in 0.11.13 |
Arrived here after installing https://github.com/sickill/stderred to get some |
Hello everyone! Any plan to fix this? Still happening, TF v0.12.12 🙏 |
Still happens in 0.12.13. The core problem itself is a
The code responsible for handling, splitting and merging (!) the command line arguments and env variables is
For the latest version of TF the log form the main process is no longer Minimal main.tf to reproduce: Note that this affects everything that goes through |
I have also reproduced this on a local build of the current tip of master for 0.12.18 with: TF_CLI_ARGS="-no-color" terraform apply for a trivial null resource tf config: resource "null_resource" "example" {
provisioner "local-exec" {
command = "true"
}
} Many thanks to @luk2302 for digging into why this is happening. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
This looks like an issue with handling of TF_CLI_ARGS
Terraform Configuration Files
Not provided.
Debug Output
snipped a lot of stuff out of the log to what appear to be relevant items, can't expose configuration details that much of debug log exposes.
https://gist.github.com/anonymous/39e50ec98e78b4d66f97e17af3af0d25
Expected Behavior
The plan should have been executed by just executing terraform plan with the environment variables set.
Actual Behavior
The following errors were observed and the plan is not executed. Unsetting environment variable and then
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Important Factoids
Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?
References
The text was updated successfully, but these errors were encountered: