From 52c3a8b801ac5c627463039c321db6a66428cb96 Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Sat, 15 Nov 2025 20:00:58 +0100 Subject: [PATCH] Update access_groups.tf --- access_groups.tf | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/access_groups.tf b/access_groups.tf index bec5ca8..b5fbd82 100644 --- a/access_groups.tf +++ b/access_groups.tf @@ -36,16 +36,16 @@ resource "cloudflare_zero_trust_access_policy" "policies" { auth_method = "mfa" }] : [], - try(each.value.require_country, false) ? [{ - group = { - id = var.policy_groups["country_requirements"] - } - }] : [], + try(each.value.require_country, false) == true ? [{ + group = { + id = var.policy_groups["country_requirements"] + } + }] : [], - try(each.value.require_latest_os, false) ? [{ - group = { - id = var.policy_groups["latest_os_version_requirements"] - } - }] : [] + try(each.value.require_latest_os, false) == true ? [{ + group = { + id = var.policy_groups["latest_os_version_requirements"] + } + }] : [] ) }