terraform -v Terraform v0.12.7
+ provider.null v2.1.2
resource "null_resource" "crash" {}
Please list the full steps required to reproduce the issue, for example:
terraform initterraform plan -out "C:\Temp\crash\plan.tfplan"terraform apply "C:\Temp\crash\plan.tfplan"The plan is applied
Terraform exits with no error but an exit code of 1.
Using the relative path to the plan works as expected:
terraform apply "plan.tfplan"
I've also tried with
terraform apply "C:\\Temp\\crash\\plan.tfplan"
terraform apply "C:/Temp/crash/plan.tfplan"
C:\Temp\crash> terraform apply "C:\Temp\crash\plan.tfplan"
2019/09/02 16:18:58 [INFO] Terraform version: 0.12.7
2019/09/02 16:18:58 [INFO] Go runtime version: go1.12.9
2019/09/02 16:18:58 [INFO] CLI args: []string{"C:\\ProgramData\\chocolatey\\lib\\terraform\\tools\\terraform.exe", "apply", "C:\\Temp\\crash\\plan.tfplan"}
2019/09/02 16:18:58 [DEBUG] Attempting to open CLI config file: C:\Users\henry.buckle\AppData\Roaming\terraform.rc
2019/09/02 16:18:58 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/09/02 16:18:58 [INFO] CLI command args: []string{"apply", "C:\\Temp\\crash\\plan.tfplan"}
An update, using the extended length prefix works:
terraform apply "\\?\C:\Temp\crash\plan.tfplan"
Any update on this? I'm running into the same issue.
Most helpful comment
An update, using the extended length prefix works:
terraform apply "\\?\C:\Temp\crash\plan.tfplan"