From b5ce054d358b00539bc8ca36b021340b834233fe Mon Sep 17 00:00:00 2001 From: Thomas Cardin <49320132+ThomasCardin@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:44:59 -0500 Subject: [PATCH] zero_trust --- terraform/main.tf | 1 - terraform/modules/zero_trust_application/main.tf | 1 - terraform/modules/zero_trust_application/variables.tf | 5 ----- 3 files changed, 7 deletions(-) diff --git a/terraform/main.tf b/terraform/main.tf index d49a252..4a2f634 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -8,7 +8,6 @@ module "cname-records" { module "zero-trust-app" { source = "./modules/zero_trust_application" - cloudflare_zone_id = var.cloudflare_zone_id cloudflare_api_key = var.cloudflare_api_key names = ["ollama", "argocd", "ceph", "grafana", "oauth2"] diff --git a/terraform/modules/zero_trust_application/main.tf b/terraform/modules/zero_trust_application/main.tf index dfa477b..59f34c7 100644 --- a/terraform/modules/zero_trust_application/main.tf +++ b/terraform/modules/zero_trust_application/main.tf @@ -13,7 +13,6 @@ resource "cloudflare_zero_trust_access_application" "app" { for_each = { for idx, name in var.names : idx => name } account_id = var.cloudflare_api_key - zone_id = var.cloudflare_zone_id name = each.value domain = "${each.value}.ninebasetwo.net" diff --git a/terraform/modules/zero_trust_application/variables.tf b/terraform/modules/zero_trust_application/variables.tf index f732864..562f4d7 100644 --- a/terraform/modules/zero_trust_application/variables.tf +++ b/terraform/modules/zero_trust_application/variables.tf @@ -3,11 +3,6 @@ variable "names" { type = list(string) } -variable "cloudflare_zone_id" { - description = "The zone ID for Cloudflare" - type = string -} - variable "cloudflare_api_key" { description = "The API key for Cloudflare" type = string