내 공급자 코드는 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"
}