From 0f9e232748176df3d5ee63ec8a1dc5c15a500515 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 19 Dec 2024 23:56:02 +0100 Subject: [PATCH] fix app ent --- docs/resources/application_entitlement.md | 4 ++-- .../resources/authentik_application_entitlement/resource.tf | 4 ++-- internal/provider/resource_application_entitlement_test.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/resources/application_entitlement.md b/docs/resources/application_entitlement.md index 3cb0aca..0f75cd7 100644 --- a/docs/resources/application_entitlement.md +++ b/docs/resources/application_entitlement.md @@ -20,7 +20,7 @@ resource "authentik_application" "name" { resource "authentik_application_entitlement" "ent" { name = "test-ent" - application = authentik_application.name.id + application = authentik_application.name.uuid } resource "authentik_group" "group" { @@ -28,7 +28,7 @@ resource "authentik_group" "group" { } resource "authentik_policy_binding" "test-ent-access" { - target = authentik_application.name.uuid + target = authentik_application_entitlement.ent.uuid group = authentik_group.group.id order = 0 } diff --git a/examples/resources/authentik_application_entitlement/resource.tf b/examples/resources/authentik_application_entitlement/resource.tf index d6072b4..f4008ae 100644 --- a/examples/resources/authentik_application_entitlement/resource.tf +++ b/examples/resources/authentik_application_entitlement/resource.tf @@ -6,7 +6,7 @@ resource "authentik_application" "name" { resource "authentik_application_entitlement" "ent" { name = "test-ent" - application = authentik_application.name.id + application = authentik_application.name.uuid } resource "authentik_group" "group" { @@ -14,7 +14,7 @@ resource "authentik_group" "group" { } resource "authentik_policy_binding" "test-ent-access" { - target = authentik_application.name.uuid + target = authentik_application_entitlement.ent.uuid group = authentik_group.group.id order = 0 } diff --git a/internal/provider/resource_application_entitlement_test.go b/internal/provider/resource_application_entitlement_test.go index e48534a..d3ecf7a 100644 --- a/internal/provider/resource_application_entitlement_test.go +++ b/internal/provider/resource_application_entitlement_test.go @@ -56,7 +56,7 @@ resource "authentik_application" "name" { resource "authentik_application_entitlement" "ent" { name = "%[1]s" - application = authentik_application.name.id + application = authentik_application.name.uuid } `, name) }