This commit is contained in:
2023-10-18 17:33:56 +02:00
parent c5e6121bac
commit 6fbef48218
4 changed files with 71 additions and 68 deletions

View File

@@ -79,16 +79,6 @@ data "http" "get_forward_outpost" {
}
}
provider "restapi" {
uri = "http://authentik.${var.domain}-auth.svc/api/v3/"
headers = local.request_headers
create_method = "PATCH"
update_method = "PATCH"
destroy_method = "PATCH"
write_returns_object = true
id_attribute = "name"
}
resource "restapi_object" "forward_outpost_binding" {
path = "/outposts/instances/${local.forward-outpost-pk}/"
data = jsonencode({

View File

@@ -24,6 +24,5 @@ variable "middlewares" {
type = list(string)
}
variable "service" {
type = object
}