问题描述
我最近将自己的Terraform从v0.10.8更新到了v0.11.1
I have recently updated my terraform from v0.10.8 to v0.11.1
我在执行Terraform计划时面临尴尬的问题,第一次运行该命令会为我提供适当的输出计划,但是第二次运行该命令时,会在加载模块时出现以下错误.
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.
看起来像是提供程序或模块的问题,但是我的terraform已成功初始化,输出如下.
It looks like some issue of provider or module, But my terraform gets initialized successfully with below output.
请提出任何解决方案!
推荐答案
看来我找到了解决方案.
It looks like I found the solution.
在创建新计划之前,我们必须删除旧的 .terraform 目录.
We have to delete the old .terraform directory before the creation of the fresh plan.
这篇关于Terraform v0.11.1:错误下载模块:错误加载模块:open .terraform/modules/3f10921295c292995128e9e36eb:没有此类文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!