Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform init throws openpgp: key expired #297

Open
gmcgoldrick-r7 opened this issue Aug 13, 2024 · 6 comments
Open

Terraform init throws openpgp: key expired #297

gmcgoldrick-r7 opened this issue Aug 13, 2024 · 6 comments

Comments

@gmcgoldrick-r7
Copy link

Hi I'm getting this error when doing a terraform init:

Error while installing gavinbunney/kubectl v1.14.0: error checking signature: openpgp: key expired

Terraform code is:

terraform {
  required_providers {
    kubectl = {
      source  = "gavinbunney/kubectl"
      version = ">= 1.7.0"
    }
  }
}

Any ideas what this could be?
Thanks

@alekc
Copy link
Contributor

alekc commented Aug 13, 2024 via email

@gmcgoldrick-r7
Copy link
Author

Thanks for the reply, switched to your provider!

@yunfeng-scale
Copy link

yunfeng-scale commented Aug 16, 2024

just updating the provider is not enough in my case since it still shows in terraform providers as required by state. terraform state replace-provider gavinbunney/kubectl alekc/kubectl seems to fix it.

@gmcgoldrick-r7
Copy link
Author

just updating the provider is not enough in my case since it still shows in terraform providers as required by state. terraform state replace-provider gavinbunney/kubectl alekc/kubectl seems to fix it.

Yes, I had to do this also

@divyangjp
Copy link

Tagging @gavinbunney

@Bharathkumarraju
Copy link

Thanks @alekc your provider looks fine for me

- Installing alekc/kubectl v2.0.4...
- Installed alekc/kubectl v2.0.4 (self-signed, key ID 772FB27A86DAFCE7)

    kubectl = {
      source  = "alekc/kubectl"
      version = ">= 2.0.0"
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants