Skip to content

Commit fc258a8

Browse files
committed
Use ref in new custom rules Terraform example
1 parent 6034112 commit fc258a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/terraform/additional-configurations/waf-custom-rules.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ resource "cloudflare_ruleset" "zone_custom_firewall_leaked_creds" {
7878
phase = "http_request_firewall_custom"
7979
8080
rules {
81-
action = "managed_challenge"
82-
expression = "(cf.waf.credential_check.username_and_password_leaked)"
81+
ref = "challenge_leaked_username_password"
8382
description = "Challenge requests with a leaked username and password"
84-
enabled = true
83+
expression = "(cf.waf.credential_check.username_and_password_leaked)"
84+
action = "managed_challenge"
8585
}
8686
}
8787
```

0 commit comments

Comments
 (0)