Skip to content

Commit 76de0be

Browse files
committed
Update resource name and usage
1 parent 2a9fd6e commit 76de0be

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/content/docs/waf/detections/leaked-credentials/get-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Refer to the [`lookup_json_string()`](/ruleset-engine/rules-language/functions/#
128128

129129
</TabItem> <TabItem label="Terraform">
130130

131-
Use the `cloudflare_leaked_credential_check_rules` resource to add custom detection locations. For example:
131+
Use the `cloudflare_leaked_credential_check_rule` resource to add a custom detection location. For example:
132132

133133
<Render file="leaked-credentials-detection-add-custom-location-terraform" />
134134

src/content/partials/waf/leaked-credentials-detection-add-custom-location-terraform.mdx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@
44

55
```terraform
66
# Create user-defined detection locations for leaked credentials detection
7-
resource "cloudflare_leaked_credential_check_rules" "custom_location_example" {
7+
resource "cloudflare_leaked_credential_check_rule" "custom_location_example" {
88
zone_id = "<ZONE_ID>"
9-
rule {
10-
username = "lookup_json_string(http.request.body.raw, \"user\")"
11-
password = "lookup_json_string(http.request.body.raw, \"secret\")"
12-
}
9+
username = "lookup_json_string(http.request.body.raw, \"user\")"
10+
password = "lookup_json_string(http.request.body.raw, \"secret\")"
1311
}
1412
```
1513

16-
To create another custom detection location, add a new `rule` object to the same `cloudflare_leaked_credential_check_rules` resource.
17-
18-
For more information, refer to the [Terraform Cloudflare provider](https://registry.terraform.io/providers/cloudflare/cloudflare/4.48.0/docs/resources/leaked_credential_check_rules) documentation.
14+
For more information, refer to the [Terraform Cloudflare provider documentation](https://registry.terraform.io/providers/cloudflare/cloudflare/4.48.0/docs/resources/leaked_credential_check_rule).

0 commit comments

Comments
 (0)