-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Provider produced inconsistent result after apply #580
Comments
As a temporary workaround, you can set |
This doesn't appear to work either. It's producing the same error as above. I did test my token and curled the authentik api, which worked successfully, so it doesn't appear to be an api/connectivity issue.
|
I think it might also be due to this https://github.com/goauthentik/terraform-provider-authentik/blob/main/internal/provider/resource_brand_test.go#L33-L43 |
I'm not sure this is related to the brand resource. I completely blew away my terraform state/files, and tried adding a group instead. I'm getting the same error message. terraform {
required_providers {
authentik = {
source = "goauthentik/authentik"
}
}
}
provider "authentik" {
url = "https://authentik.talos.example.com"
insecure = true
# Optionally add extra headers
# headers {
# X-my-header = "foo"
# }
# Set token with `export AUTHENTIK_TOKEN='<your-token>'`
}
resource "authentik_group" "jellyfin_users" {
name = "jellyfin-users"
users = []
is_superuser = false
}
resource "authentik_group" "jellyfin_admins" {
name = "jellyfin-admins"
users = []
is_superuser = false
} authentik_group.jellyfin_users: Creating...
authentik_group.jellyfin_admins: Creating...
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to authentik_group.jellyfin_users, provider "provider[\"registry.terraform.io/goauthentik/authentik\"]" produced an unexpected new value:
│ Root object was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to authentik_group.jellyfin_admins, provider "provider[\"registry.terraform.io/goauthentik/authentik\"]" produced an unexpected new value:
│ Root object was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker. |
Authentik: 2024.8.3
Platform: Kubernetes
Terraform: v1.9.8
Tofu: v1.8.4
Provider version: 2024.8.4
Brand new install of Authentik. All I did is perform the initial user setup and get an api token.
terraform:
trace logs
Click to expand code
The text was updated successfully, but these errors were encountered: