-
-
Notifications
You must be signed in to change notification settings - Fork 384
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
[Bug]: Error: Invalid provider configuration #1083
Comments
I am also running into this - it is even independent of the version I am trying. (the old version which worked before, does no longer work) I would guess kube-hetzner has a kind-of hidden dependency which is not fixed (I fixed all versions I could find in the kube.tf). terraform |
Looking through the source code I found that no terraform integration has a pinned version
I also cannot find any way to pin them |
I created an upstream issue. Let's hope this gets clarified soon, as it seems to block all kube-hetzner deployments. |
I also found a workaround. You need to adapt your kube.tf file to let the terraform section include a requirement for github with a version upper bound terraform {
required_version = ">= 1.3.3"
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
version = ">= 1.38.2"
}
github = {
source = "integrations/github"
version = ">= 5.38.0, < 5.41.0"
}
}
} |
Thanks @schlichtanders I will publish your fix for now. |
@zypriafl This is fixed in v2.9.3, thanks for reporting it. @schlichtanders Appreciate the tip and you submitting the issue upstream. Will unbound when it is fixed. |
I'm having this same issue with the latest version |
@David-Crty Make sure to run |
Description
The command "terraform apply -auto-approve" fails with:
Plan: 7 to add, 4 to change, 0 to destroy.
╷
│ Error: Invalid provider configuration
│
│ Provider "registry.terraform.io/integrations/github" requires explicit configuration. Add a provider block to the root module and configure the provider's required arguments as described in the provider
│ documentation.
│
╵
╷
│ Error: GET https://api.github.com/user: 401 Requires authentication []
│
│ with provider["registry.terraform.io/integrations/github"],
│ on line 0:
│ (source code not available)
│
╵
Any idea what I am missing here? Thanks for your help.
Kube.tf file
Screenshots
No response
Platform
Linux
The text was updated successfully, but these errors were encountered: