change var to local
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 14s

This commit is contained in:
2025-11-20 10:25:24 +01:00
parent bf1408e499
commit 342482663f
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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