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

泄露秘密 提交于 2020-01-11 07:31:10

问题


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!


回答1:


$ terraform get -update

$ terraform refresh # Error is gone




回答2:


It looks like I found the solution.

We have to delete the old .terraform directory before the creation of the fresh plan.



来源:https://stackoverflow.com/questions/48057222/terraform-v0-11-1-error-downloading-modules-error-loading-modules-open-terr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!