Loading...
Loading...
### Terraform Version ```shell > 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 ```terraform module "user_data" { source = "c:/Repositories/TerraformModules/terraform-aws-ec2-userdata" some_var = var.some_var } ``` ### Debug Output https://gist.github.com/David-Pickwell-Hearst/23a4243b3dffcdb64ea2f182b87f8366 ### Expected Behavior When a `plan` or an `apply` 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: ```hcl Terraform v1.5.7 on linux_amd64 Initializing plugins and modules... Initializing Terraform Cloud...Initializing modules...Downloading c:/Repositories/TerraformModules/terraform-aws-ec2-userdata for windows_vm.user_data... ╷ │ Error: Failed to download module │ │ on ../main.tf line 113: │ 113: module "user_data" { │ │ Could not download module "user_data" (../main.tf:113) source code from │ "c:/Repositories/TerraformModules/terraform-aws-ec2-userdata": download not │ supported for scheme 'c' ╵ Operation failed: failed running terraform init (exit 1) ``` ### Steps to Reproduce 1. Create a module that sources a second module from a location on the local file system 2. Run a `terraform init` and `terraform validate` 3. Run a `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 an `ec2-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 versions ### References _No response_
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.