You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2019/05/28 18:58:08 [INFO] Terraform version: 0.12.0
2019/05/28 18:58:08 [INFO] Go runtime version: go1.12.5
2019/05/28 18:58:08 [INFO] CLI args: []string{"/usr/bin/terraform", "console", "-var", "test=\"a\""}
2019/05/28 18:58:08 [DEBUG] Attempting to open CLI config file: /home/mahdi/.terraformrc
2019/05/28 18:58:08 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/05/28 18:58:08 [INFO] CLI command args: []string{"console", "-var", "test=\"a\""}
Usage: terraform console [options] [DIR]
Starts an interactive console for experimenting with Terraform
interpolations.
This will open an interactive console that you can use to type
interpolations into and inspect their values. This command loads the
current state. This lets you explore and test interpolations before
using them in future configurations.
This command will never modify your state.
DIR can be set to a directory with a Terraform state to load. By
default, this will default to the current working directory.
Options:
-state=path Path to read state. Defaults to "terraform.tfstate"
-var 'foo=bar' Set a variable in the Terraform configuration. This
flag can be set multiple times.
-var-file=foo Set variables in the Terraform configuration from
a file. If "terraform.tfvars" or any ".auto.tfvars"
files are present, they will be automatically loaded.
Crash Output
Expected Behavior
Terraform console should support -var-file and -var as stated in the help, and as was in the past versions. There is no note of this in the changelog either. We rely heavily on this feature.
Actual Behavior
Terraform console seems to support only -state and not -var-file or -var.
Steps to Reproduce
terraform console -var "test='a'"
Additional Context
References
This seems to have been caused in this commit: ef90545
Specifically, this change:
The text was updated successfully, but these errors were encountered:
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.
ghost
locked and limited conversation to collaborators
Oct 7, 2019
# for freeto subscribe to this conversation on GitHub.
Already have an account?
#.
Labels
bugcliv0.12Issues (primarily bugs) reported against v0.12 releases
Terraform Version
Terraform Configuration Files
N/A
Debug Output
Crash Output
Expected Behavior
Terraform console should support
-var-file
and-var
as stated in the help, and as was in the past versions. There is no note of this in the changelog either. We rely heavily on this feature.Actual Behavior
Terraform console seems to support only
-state
and not-var-file
or-var
.Steps to Reproduce
terraform console -var "test='a'"
Additional Context
References
This seems to have been caused in this commit: ef90545
Specifically, this change:

The text was updated successfully, but these errors were encountered: