Loading...
Loading...
### Terraform Version ```shell bash-5.1# terraform version Terraform v1.3.6 on linux_amd64 + provider local.terraform.com/root/flexibleengine v1.35.1 + provider registry.terraform.io/hashicorp/local v1.4.0 ``` ### Terraform Configuration Files ```terraform --- version.tf terraform { required_providers { local = "~> 1.0" flexibleengine = { source = "local.terraform.com/root/flexibleengine" version = "1.35.1" } } } --- modules.tf module "env_secgroup" { source = "/root/.terraform.d/modules/FlexibleEngineCloud/terraform-flexibleengine-secgroup/v2.0.1" name = "secgroup" description = "Allow ports" ingress_with_source_cidr = [ { from_port = 22 to_port = 22 protocol = "tcp" ethertype = "IPv4" source_cidr = "0.0.0.0/0" }, { from_port = 5432 to_port = 5432 protocol = "tcp" ethertype = "IPv4" source_cidr = "0.0.0.0/0" } ] } --- /root/.terraform.d/modules/FlexibleEngineCloud/terraform-flexibleengine-secgroup/v2.0.1/versions.tf terraform { required_providers { flexibleengine = { source = "local.terraform.com/root/flexibleengine" } } required_version = ">= 0.13" } ``` ### Debug Output NB : this contains the workaround used to bypass the issue. https://gist.github.com/grimlokason/7010c546e9084270d6c47b614dd11663 ### Expected Behavior ```terraform validate``` should not try to use the terraform-provider-flexibleengine_1.35.1_linux_amd64.zip but terraform-provider-flexibleengine_v1.35.1 ### Actual Behavior ```terraform validate``` crash because it try to execute a zip file instead of a go file with that error : ``` │ Error: failed to read schema for module.env_secgroup.flexibleengine_networking_secgroup_rule_v2.egress_with_source_security_group_id in local.terraform.com/root/flexibleengine: failed to instantiate provider "local.terraform.com/root/flexibleengine" to obtain schema: fork/exec .terraform/providers/local.terraform.com/root/flexibleengine/1.35.1/linux_amd64/terraform-provider-flexibleengine_1.35.1_linux_amd64.zip: exec format error ``` ### Steps to Reproduce ```terraform init -upgrade -reconfigure -input=false -backend-config="access_key=***" -backend-config="secret_key=***" terraform validate``` ### Additional Context Nb : i don't know how you can effectively reproduce it since it's using local module/prodivers within a docker container in private registry. I can try to publish the full project within a docker container, but only after the 2 january. Best regards. ### 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.