profile
viewpoint

Ask questionsTerraform v0.11.1 : Error downloading modules: Error loading modules: open .terraform/modules/3f10921295c292995128e9e36eb: no such file or directory

Hi All,

I have recently updated my terraform from v0.10.8 to v0.11.1

I am facing awkward issue while running terraform plan, For first time running the command it gives me proper plan in output but while running the same command 2nd time it gives me below error while loading the module.

Error downloading modules: Error loading modules: module zookeeper: open .terraform/modules/3f10921295c292995128e9e36ebdfa9f: no such file or directory

It looks like some issue of provider or module, But my terraform gets initialized successfully with below output.

  • provider.aws: version = "~> 1.2"
  • provider.template: version = "~> 1.0"

Please suggest any solution!

hashicorp/terraform

Answer questions queglay

on a new install, I am getting this issue in v0.11.13 (not ready to update to .12. I went through all the subtree and there are no other .terraform files to delete.

But the error is slightly different - Initializing modules...

- module.vpc
- module.bastion
- module.softnas
- module.workstation
- module.node
- module.vpc.vpc
Error downloading modules: Error loading modules: module vpc: Error parsing .terraform/modules/ee16f4d52d8fd55d82aa3351f0ccd953/terraform-aws-modules-terraform-aws-vpc-6c31234/main.tf: At 2:23: Unknown token: 2:23 IDENT max

Error: Error loading modules: module vpc: Error parsing .terraform/modules/ee16f4d52d8fd55d82aa3351f0ccd953/terraform-aws-modules-terraform-aws-vpc-6c31234/main.tf: At 2:23: Unknown token: 2:23 IDENT max
useful!

Related questions

failed to save provider manifest: open .terraform/plugins/linux_amd64/lock.json: permission denied hot 4
The argument "host" is required, but no definition was found. hot 3
Unable to run 0.12upgrade hot 3
Module cannot find alias AWS provider in 0.12.0 hot 3
Error: Invalid template interpolation value hot 2
MalformedPolicyDocument: Policy document should not specify a principal. hot 2
Error in Terraform 0.12.0: This object has no argument, nested block, or exported attribute hot 2
Feature Request - Allow list/array in 'query' in 'external' data source hot 2
Terraform provider downloads fail with TLS handshake timeout hot 2
'terraform init' failed with 'Registry service unreachable.' error hot 2
for_each attribute for creating multiple resources based on a map hot 2
`Unreadable module directory` error is not clear for nested modules hot 2
Provider Development: Expected type 'string', got unconvertible type '[]interface {}' - with complicated block hot 2
Error loading state: state snapshot was created by Terraform v0.12.7, which is newer than current v0.12.6 hot 2
[BUG] Terraform 0.12.x corrupts state when upgrading from 0.11.14 hot 1
Github User Rank List