terraform init -from-module errors or crashes if that module references module's with local relative directories #25707
Labels
confirmed
a Terraform Core team member has reproduced this issue
crash
v0.12
Issues (primarily bugs) reported against v0.12 releases
waiting-response
An issue/pull request is waiting for a response from the community
Terraform Version
Terraform Output (Error Scenario)
Terraform Output (Crash Scenario)
If you instead try to use a relative subdir, terraform will crash.
Expected Behavior
I would expect terraform to resolve the relative directories before the copy, resulting in a successful
terraform init
with the downloaded modules.Actual Behavior
Cryptic error message in the case of module foo { source = "../whatever" } and a crash in the case of module foo { source = "./whatever" }
Steps to Reproduce
As above.
Additional Context
I realize that you can avoid these errors by not using -from-module, so we do have a workaround.. We were using -from-module so that we have a chance to do some out-of-band TF templating between the terraform init & terraform apply commands, although we managed to strip most of this requirement thanks to 0.12.x.
References
The text was updated successfully, but these errors were encountered: