diff --git a/src/content/docs/waf/detections/leaked-credentials/get-started.mdx b/src/content/docs/waf/detections/leaked-credentials/get-started.mdx index b0f5e986ab02db..3ee1fa60aad7ca 100644 --- a/src/content/docs/waf/detections/leaked-credentials/get-started.mdx +++ b/src/content/docs/waf/detections/leaked-credentials/get-started.mdx @@ -128,7 +128,7 @@ Refer to the [`lookup_json_string()`](/ruleset-engine/rules-language/functions/# -Use the `cloudflare_leaked_credential_check_rules` resource to add custom detection locations. For example: +Use the `cloudflare_leaked_credential_check_rule` resource to add a custom detection location. For example: diff --git a/src/content/partials/waf/leaked-credentials-detection-add-custom-location-terraform.mdx b/src/content/partials/waf/leaked-credentials-detection-add-custom-location-terraform.mdx index f6bd79bf488906..05132502733a67 100644 --- a/src/content/partials/waf/leaked-credentials-detection-add-custom-location-terraform.mdx +++ b/src/content/partials/waf/leaked-credentials-detection-add-custom-location-terraform.mdx @@ -4,15 +4,11 @@ ```terraform # Create user-defined detection locations for leaked credentials detection -resource "cloudflare_leaked_credential_check_rules" "custom_location_example" { +resource "cloudflare_leaked_credential_check_rule" "custom_location_example" { zone_id = "" - rule { - username = "lookup_json_string(http.request.body.raw, \"user\")" - password = "lookup_json_string(http.request.body.raw, \"secret\")" - } + username = "lookup_json_string(http.request.body.raw, \"user\")" + password = "lookup_json_string(http.request.body.raw, \"secret\")" } ``` -To create another custom detection location, add a new `rule` object to the same `cloudflare_leaked_credential_check_rules` resource. - -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. +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).