Update Traffic_Policies-Firewall_Policies-HTTP.tf
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 13s
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 13s
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# Local Variables
|
# Local Variables
|
||||||
#==========================================================
|
#==========================================================
|
||||||
locals {
|
locals {
|
||||||
precedence = {
|
precedence_http = {
|
||||||
# HTTP (L7) Policies - AI Application Governance
|
# HTTP (L7) Policies - AI Application Governance
|
||||||
ai_tools_redirect = 24000 # Redirect unreviewed AI tools to Claude
|
ai_tools_redirect = 24000 # Redirect unreviewed AI tools to Claude
|
||||||
chatgpt_allow_log = 24100 # Allow ChatGPT with prompt logging
|
chatgpt_allow_log = 24100 # Allow ChatGPT with prompt logging
|
||||||
@@ -28,7 +28,7 @@ locals {
|
|||||||
# Organized by policy type: then HTTP (L7) policies
|
# Organized by policy type: then HTTP (L7) policies
|
||||||
# Following Cloudflare best practices with 1000-spacing between major groups
|
# Following Cloudflare best practices with 1000-spacing between major groups
|
||||||
# Integrates with dashboard-managed policies at precedence: 1000-3000, 5000-20000, 36000-40000
|
# Integrates with dashboard-managed policies at precedence: 1000-3000, 5000-20000, 36000-40000
|
||||||
gateway_policies = {
|
gateway_policies_http = {
|
||||||
#==========================================================
|
#==========================================================
|
||||||
# HTTP (L7) POLICIES
|
# HTTP (L7) POLICIES
|
||||||
# Application/Content-based filtering
|
# Application/Content-based filtering
|
||||||
@@ -94,15 +94,15 @@ locals {
|
|||||||
#==========================================================
|
#==========================================================
|
||||||
# Gateway Policies
|
# Gateway Policies
|
||||||
#==========================================================
|
#==========================================================
|
||||||
resource "cloudflare_zero_trust_gateway_policy" "policies" {
|
resource "cloudflare_zero_trust_gateway_policy" "policies_http" {
|
||||||
for_each = local.gateway_policies
|
for_each = local.gateway_policies_http
|
||||||
|
|
||||||
account_id = local.cloudflare_account_id
|
account_id = local.cloudflare_account_id
|
||||||
name = each.value.name
|
name = each.value.name
|
||||||
description = each.value.description
|
description = each.value.description
|
||||||
enabled = each.value.enabled
|
enabled = each.value.enabled
|
||||||
action = each.value.action
|
action = each.value.action
|
||||||
precedence = each.value.precedence
|
precedence = each.value.precedence_http
|
||||||
filters = each.value.filters
|
filters = each.value.filters
|
||||||
traffic = each.value.traffic
|
traffic = each.value.traffic
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user