错误:无法为 terraform 0.14.3

问题描述

我们的提供商遇到以下错误

错误:无法加载插件

需要重新初始化插件。请运行“terraform init”。 插件terraform 用来访问和操作的外部二进制文件 资源。提供的配置需要无法定位的插件, 不满足版本限制,或者不兼容。 terraform 自动从您的 配置,包括子模块中使用的提供程序。要查看 要求和约束,运行“terraform provider”。 无法实例化提供程序“registry.terraform.io/hashicorp/aws”以获取 架构:未知提供者“registry.terraform.io/hashicorp/aws” 使用来自 /root/.docker/config.json 的凭据进行身份验证

虽然我们也更换了提供者

terraform state replace-provider -auto-approve registry.terraform.io/-/aws registry.terraform.io/hashicorp/aws 
terraform state replace-provider -auto-approve registry.terraform.io/-/external   registry.terraform.io/hashicorp/external
terraform state replace-provider -auto-approve registry.terraform.io/-/null   registry.terraform.io/hashicorp/null
terraform state replace-provider -auto-approve registry.terraform.io/-/random   registry.terraform.io/hashicorp/random
terraform state replace-provider -auto-approve registry.terraform.io/-/template  registry.terraform.io/hashicorp/template

除此之外,我们还使用了 required_providers 但没有运气

 required_providers {
        aws = {
        source = "hashicorp/aws"
        version = "3.49.0"
      }
    }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)