-
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
terraform init -backend-config does not work with with variables #12875
Comments
I think i have a similar issue: When using the .tf file:
This finishes as expected and a plan states: If I try and run via CLI:
Everything reports success except the plan reports: |
Hey @skarum, support for K/V values was added in 0.9.1! |
@mitchellh This is a bit of a pickle now: We can't update to 0.9.1 because of #12892 , and we can't use 0.9.0 because of this issue right here. Any chance for a quick fix for #12892 ? |
Thanks @grubernaut, that info keeps me from rolling everything back ;-) |
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
Terraform v0.9.0
Affected Resource(s)
Not a problem with a resource, but with terraform itself.
Terraform Configuration Files
Debug Output
terraform init -backend-config 'region=eu-west-1'
returns this:Output:
https://gist.github.com/skarum/42e024fa05262fadd6c857c58c129c3d
Expected Behavior
Terraform should use the variable specified in the ìnit`command and use region = 'eu-west-1' for the backend.
Actual Behavior
Terraform tries to load the variable as it was a file.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Create backend in ´backend.tf´
terraform init -backend-config 'region=eu-west-1'
Important Factoids
If I create a file with the variable and points -backend-config at it, it works as expected:
File content:
terraform init -backend-config './path/to/file'
The text was updated successfully, but these errors were encountered: