Loading...
Loading...
Prepare ```bash TF_DATA_DIR=terraform/dev1/.terraform terraform init terraform/dev1 TF_DATA_DIR=terraform/dev1/.terraform terraform apply -var-file="terraform/dev1/secret.tfvars" terraform/dev1 ``` Var `TF_DATA_DIR` works well. However if using the var with output param I get an error: ```bash TF_DATA_DIR=terraform/dev1/.terraform terraform output -state=terraform/dev1/state/terraform.tfstate Backend reinitialization required. Please run "terraform init". Reason: Unsetting the previously set backend "local" .... Error: Initialization required. Please see the error message above. ``` if I discard the last directory, it works ```bash TF_DATA_DIR=terraform/dev1/ terraform output -state=terraform/dev1/state/terraform.tfstate ``` I guess this is different behavior of TF_DATA_DIR variable for `init/create` and `output` commands. ```bash terraform -v Terraform v0.12.6 ```
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.