Version of Terraform has outdated GPG key
kbalk opened this issue · 6 comments
I have a fresh install of Terraform v1.0.7 on my system, so the error message below doesn't make sense to me. I don't know if it's a Go module that needs updating or some other problem:
$ awsweeper --dry-run --parallel 2 --profile xxxx --region us-east-1 awsweeper.yaml --debug
created new instance of AWS client profile =xxxx region=us-east-1
failed to install provider (aws): 2 problems:
- registry.terraform.io: This version of Terraform has an outdated GPG key and is
unable to verify new provider releases. Please upgrade Terraform to at least
0.12.31 to receive new provider updates. For details see:
https://discuss.hashicorp.com/t/hcsec-2021-12-codecov-security-event-and-hashicorp-gpg-key-exposure/23512
- open /home/kbalk/.awsweeper/terraform-provider-aws_v3.16.0_x5: text file busy
Error: failed to launch provider (): fork/exec : no such file or directory
Version info:
$ awsweeper --version
version: 0.11.1
commit: e137016
built at: 2021-01-03T12:28:11Z
using: go1.15.6
I downloaded awsweeper_0.11.1_linux_amd64.tar.gz
and I'm running Centos 7.
This might actually be a terradozer
or awstools-lib
issue? It doesn't matter what version of Terraform I have on my system.
terradozer
is either using Terraform 0.12.28 or 0.12.31? That's old.
Thanks @kbalk for opening the issue. Correct, the Terraform version on your system doesn't matter - awsweeper installs it's own Terraform AWS Provider plugin. I didn't find much time updating awsweeper
the last few months, but an update comes soon. I'll let you know.
@jckuester Is "soon" weeks or months?
+1 edit: now works on my end, I had to cleanup the $HOME/.awsweeper folder though
Thank you! However, if I put a newer terraform-aws-provider in $HOME/.awsweeper
, then after I ran awsweeper
it would delete that file.
On same issue, I upgraded to awsweeper 0.12.0 and everything is now working fine. My two cents.