fix: drop duplicate required_providers from generated backend.tf
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was canceled

The module's versions.tf and the root.hcl-generated backend.tf both
declared required_providers, which OpenTofu rejects ("A module may have
only one required providers configuration"), so terragrunt init/plan
failed. Keep them in the module's versions.tf (authentik + vault) and
generate only the backend + provider blocks.
This commit is contained in:
2026-07-06 23:12:43 +10:00
parent 3d7131032f
commit d1aef45d1d
+2 -10
View File
@@ -25,16 +25,8 @@ terraform {
ca_file = "/etc/pki/tls/certs/ca-bundle.crt" ca_file = "/etc/pki/tls/certs/ca-bundle.crt"
} }
required_version = ">= 1.10" required_version = ">= 1.10"
required_providers { # required_providers are declared in the module's versions.tf; declaring them
authentik = { # here as well is a duplicate configuration (OpenTofu permits only one).
source = "goauthentik/authentik"
version = "2026.5.0"
}
vault = {
source = "hashicorp/vault"
version = ">= 4.0.0"
}
}
} }
EOF EOF
} }