From 87fd9d9ee5b524331501ea686917c4dce502ed76 Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Tue, 18 Nov 2025 08:50:48 +0100 Subject: [PATCH] Add team_resources_devices.tf --- team_resources_devices.tf | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 team_resources_devices.tf diff --git a/team_resources_devices.tf b/team_resources_devices.tf new file mode 100644 index 0000000..b1da0de --- /dev/null +++ b/team_resources_devices.tf @@ -0,0 +1,39 @@ +# ============================================================================= +# CLOUDFLARE : Team & Resources : Devices +# ============================================================================= + +# +resource "cloudflare_zero_trust_device_custom_profile" "example_zero_trust_device_custom_profile" { + account_id = local.cloudflare_account_id + match = "identity.email == \"test@cloudflare.com\"" + name = "Allow Developers" + precedence = 100 + allow_mode_switch = true + allow_updates = true + allowed_to_leave = true + auto_connect = 0 + captive_portal = 180 + description = "Policy for test teams." + disable_auto_fallback = true + enabled = true + exclude = [{ + address = "192.0.2.0/24" + description = "Exclude testing domains from the tunnel" + }] + exclude_office_ips = true + include = [{ + address = "192.0.2.0/24" + description = "Include testing domains in the tunnel" + }] + lan_allow_minutes = 30 + lan_allow_subnet_size = 24 + register_interface_ip_with_dns = true + sccm_vpn_boundary_support = false + service_mode_v2 = { + mode = "proxy" + port = 3000 + } + support_url = "https://1.1.1.1/help" + switch_locked = true + tunnel_protocol = "wireguard" +} \ No newline at end of file