Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

I am using terraform version 0.11.13, and this afternoon I am getting the following error in terraform init step Does it mean I've to upgrade the terraform version, is there a deprecation for this version for aws provider?

Full logs:

Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes.  [1mInitializing provider plugins... - Checking for available provider plugins on https://releases.hashicorp.com...  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/linux_amd64 
like image 948
ashish bustler Avatar asked May 03 '21 11:05

ashish bustler


1 Answers

HashiCorp has rotated its release signing key as a part of HCSEC-2021-12

For example, for terraform 0.11.x, you can set the aws version to v2.70.0

provider "aws" {   region  = "us-east-1"   version = "v2.70.0" } 

For other versions, you can check: https://registry.terraform.io/providers/hashicorp/aws/latest/docs

like image 145
Andrei Sfat Avatar answered Dec 03 '22 03:12

Andrei Sfat