Skip to content

Commit 9659951

Browse files
committed
Remove partials used only in one place
1 parent e267765 commit 9659951

File tree

4 files changed

+17
-27
lines changed

4 files changed

+17
-27
lines changed

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

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

131131
Use the `cloudflare_leaked_credential_check_rule` resource to add a custom detection location. For example:
132132

133-
<Render file="leaked-credentials-detection-add-custom-location-terraform" />
133+
```terraform
134+
resource "cloudflare_leaked_credential_check_rule" "custom_location_example" {
135+
zone_id = "<ZONE_ID>"
136+
username = "lookup_json_string(http.request.body.raw, \"user\")"
137+
password = "lookup_json_string(http.request.body.raw, \"secret\")"
138+
}
139+
```
140+
141+
For more information, refer to the [Terraform Cloudflare provider documentation](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs).
134142

135143
</TabItem> </Tabs>
136144

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

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/content/partials/waf/leaked-credentials-detection-enable-terraform.mdx

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/content/partials/waf/leaked-credentials-detection-enable.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ curl "https://api.cloudflare.com/client/v4/zones/{zone_id}/leaked-credential-che
2828

2929
Use the `cloudflare_leaked_credential_check` resource to enable leaked credentials detection for a zone. For example:
3030

31-
<Render file="leaked-credentials-detection-enable-terraform" />
31+
```terraform
32+
resource "cloudflare_leaked_credential_check" "zone_lcc_example" {
33+
zone_id = "<ZONE_ID>"
34+
enabled = true
35+
}
36+
```
37+
38+
For more information, refer to the [Terraform Cloudflare provider documentation](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs).
3239

3340
</TabItem> </Tabs>

0 commit comments

Comments
 (0)