From 23aba81ed7cc42519ec253c44ca3a0ae8e7c4099 Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Fri, 14 Nov 2025 18:12:46 +0100 Subject: [PATCH] Update access.tf --- access.tf | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/access.tf b/access.tf index d30ac09..0f0425e 100644 --- a/access.tf +++ b/access.tf @@ -4,9 +4,11 @@ # resource "cloudflare_zero_trust_access_application" "example_zero_trust_access_application" { - account_id = local.cloudflare_account_id - name = "Home Network Access Application" - session_duration = "24h" + account_id = local.cloudflare_account_id + name = "Home Network Access Application" + session_duration = "24h" + skip_interstitial = true + tags = ["engineers"] } # ============================================================================= @@ -14,6 +16,16 @@ resource "cloudflare_zero_trust_access_application" "example_zero_trust_access_a # ============================================================================= # +resource "cloudflare_zero_trust_access_policy" "home_network_policy" { + application_id = cloudflare_zero_trust_access_application.home_network_app.id + account_id = local.cloudflare_account_id + name = "Home Network Access Policy" + precedence = 1 + decision = "allow" + include { + email = "thedjinhn@gmail.com" + } +} # ============================================================================= # CLOUDFLARE : Access : Rule groups