安装提供程序“aws”时出错:openpgp:由未知实体制作的签名

安装提供程序“aws”时出错:openpgp:由未知实体制作的签名

我的提供商代码init.tf如下:

provider "aws" {
 shared_credentials_file = "~/.aws/credentials"
 region                  = "us-east-1"
}

我使用的 Terraform 版本是:0.11.14

我在执行操作时收到如下错误terraform init

Error installing provider "aws": openpgp: signature made by unknown entity.

Terraform analyses the configuration and state and automatically downloads
plugins for the providers used. However, when attempting to download this
plugin an unexpected error occured.

This may be caused if for some reason Terraform is unable to reach the
plugin repository. The repository may be unreachable if access is blocked
by a firewall.

If automatic installation is not possible or desirable in your environment,
you may alternatively manually install plugins by downloading a suitable
distribution package and placing the plugin's executable file in the
following directory:
    terraform.d/plugins/windows_amd64

答案1

编辑init.tf如下,它对我有用:

provider "aws" {
 shared_credentials_file = "~/.aws/credentials"
 region                  = "us-east-1"
 version                 = "v2.70.0"
}

相关内容