Error on a plan
or apply
when calling a module from a local filesystem location
#36163
Labels
bug
cloud
Related to Terraform Cloud's integration with Terraform
new
new issue not yet triaged
working as designed
confirmed as reported and closed because the behavior is intended
Terraform Version
> terraform --version Terraform v1.10.0 on windows_amd64 + provider registry.terraform.io/hashicorp/aws v5.78.0 + provider registry.terraform.io/hashicorp/null v3.2.3 + provider registry.terraform.io/hashicorp/random v3.6.3
Terraform Configuration Files
Debug Output
https://gist.github.com/David-Pickwell-Hearst/23a4243b3dffcdb64ea2f182b87f8366
Expected Behavior
When a
plan
or anapply
is executed the code should be able to consume locally developed modules.This works in version
1.9.8
and before with no issue, and rolling back resolves this.This bug is also in version
1.10.1
.As a note, this happens regardless of whether you source it when an absolute or relative path.
Actual Behavior
The plan and the apply fails with an error message:
Steps to Reproduce
terraform init
andterraform validate
terraform plan
and it will fail with the above message.Additional Context
With our module developmeent, we often have modules that are interlinked.
For instance, an
ec2-linux
module will be developed and in tandem anec2-userdata
module will also be developed. This requires the need to have the ability to source all child modules locally, as was able in the <1.9.x versionsReferences
No response
The text was updated successfully, but these errors were encountered: