Skip to content

Commit 7a130e2

Browse files
authored
[Rules] Add disclaimer to Terraform examples (#21373)
1 parent 73f666c commit 7a130e2

File tree

6 files changed

+16
-0
lines changed

6 files changed

+16
-0
lines changed

src/content/docs/rules/cloud-connector/create-terraform.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ head:
99
content: Configure Cloud Connector using Terraform
1010
---
1111

12+
import { Render } from "~/components";
13+
1214
You can create Cloud Connector rules using the [Terraform Cloudflare provider](https://registry.terraform.io/providers/cloudflare/cloudflare/latest).
1315

1416
To get started with Terraform for Cloudflare configuration, refer to [Terraform: Get started](/terraform/installing/).
@@ -21,6 +23,8 @@ The [API token](/fundamentals/api/get-started/create-token/) used by Terraform m
2123

2224
## Example configuration
2325

26+
<Render file="v4-code-snippets" product="terraform" />
27+
2428
The following example Terraform configuration creates Cloud Connector rules for various [supported providers](/rules/cloud-connector/providers/) to route traffic between them based on URI paths:
2529

2630
```tf

src/content/docs/rules/cloud-connector/examples/route-images-to-aws-s3-using-terraform.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ description: Route requests with a URI path starting with `/images` to a specifi
99

1010
import { Render } from "~/components";
1111

12+
<Render file="v4-code-snippets" product="terraform" />
13+
1214
The following example defines a single Cloud Connector rule for a zone using Terraform. The rule routes requests to `/images` on your domain to an AWS S3 bucket.
1315

1416
```tf

src/content/docs/rules/configuration-rules/examples/define-single-configuration-terraform.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: Create a configuration rule using Terraform to turn off Email
1111

1212
import { Render } from "~/components";
1313

14+
<Render file="v4-code-snippets" product="terraform" />
15+
1416
The following example defines a single configuration rule for a zone using Terraform. The rule disables Email Obfuscation and Browser Integrity Check for API requests.
1517

1618
```tf

src/content/docs/rules/origin-rules/examples/define-single-origin-terraform.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: Create an origin rule using Terraform to override the `Host`
1111

1212
import { Render } from "~/components";
1313

14+
<Render file="v4-code-snippets" product="terraform" />
15+
1416
The following example defines a single origin rule for a zone using Terraform. The rule overrides the `Host` header, the resolved hostname, and the destination port of API requests.
1517

1618
```tf

src/content/docs/rules/snippets/create-terraform.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@ head:
99
content: Configure Snippets using Terraform
1010
---
1111

12+
import { Render } from "~/components";
13+
1214
You can create Snippets using the [Terraform Cloudflare provider](https://registry.terraform.io/providers/cloudflare/cloudflare/latest).
1315

1416
To get started with Terraform for Cloudflare configuration, refer to [Terraform: Get started](/terraform/installing/).
1517

1618
## Example configuration
1719

20+
<Render file="v4-code-snippets" product="terraform" />
21+
1822
The following example Terraform configuration creates a snippet and an associated snippet rule that defines when the snippet code will run. The snippet code is loaded from the `file1.js` file in your machine.
1923

2024
```tf

src/content/docs/rules/url-forwarding/single-redirects/terraform-example.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ sidebar:
88

99
import { Render } from "~/components";
1010

11+
<Render file="v4-code-snippets" product="terraform" />
12+
1113
The following example defines a single redirect rule for a zone using Terraform. The rule creates a static URL redirect for visitors requesting the contacts page using an old URL.
1214

1315
```tf

0 commit comments

Comments
 (0)