From 342482663f3b2b8bee9c2892d6a0de5e38caef02 Mon Sep 17 00:00:00 2001 From: hcornet Date: Thu, 20 Nov 2025 10:25:24 +0100 Subject: [PATCH] change var to local --- main.tf | 2 +- outputs.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index 4e7c625..72f7139 100644 --- a/main.tf +++ b/main.tf @@ -26,7 +26,7 @@ locals { ingress_rules = concat( [ for app_name, app_config in var.applications : { - hostname = "${app_config.subdomain}.${var.cloudflare_zone_id}" + hostname = "${app_config.subdomain}.${local.cloudflare_zone_id}" service = app_config.origin_url origin_request = { no_tls_verify = app_config.no_tls_verify diff --git a/outputs.tf b/outputs.tf index aaf1326..7185670 100644 --- a/outputs.tf +++ b/outputs.tf @@ -26,7 +26,7 @@ output "applications_urls" { description = "URLs publiques de toutes les applications" value = { for app_name, app_config in var.applications : - app_name => "https://${app_config.subdomain}.${var.cloudflare_zone_id}" + app_name => "https://${app_config.subdomain}.${local.cloudflare_zone_id}" } } @@ -43,7 +43,7 @@ output "applications_details" { value = { for app_name, app_config in var.applications : app_name => { - public_url = "https://${app_config.subdomain}.${var.cloudflare_zone}" + public_url = "https://${app_config.subdomain}.${local.cloudflare_zone_id}" origin_url = app_config.origin_url access_enabled = app_config.access_enabled dns_record_id = cloudflare_dns_record.applications[app_name].id