对于我们的提供者,我们的错误低于错误。
错误:无法加载插件
需要重新初始化插件。请运行"terraform init“。插件是Terraform用来访问和操作资源的外部二进制文件。所提供的配置需要无法定位、不满足版本约束或其他不兼容的插件。Terraform会自动从您的配置中发现提供程序需求,包括子模块中使用的提供程序。要查看需求和约束,请运行"terraform providers“。未能实例化提供程序“Regiy.terraform.io/hashicorp/aws”以获取模式:未知提供程序“Regiy.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"
}
}发布于 2022-06-07 14:28:56
我遵循以下步骤。
~/.terraform.d/plugins/registry.terraform.io/hashicorp/*
希望这能有所帮助。
https://stackoverflow.com/questions/68363205
复制相似问题