From 71c83d4b90ac0da28be84814a3e4506949a6c317 Mon Sep 17 00:00:00 2001
From: Pedro Sousa <680496+pedrosousa@users.noreply.github.com>
Date: Thu, 3 Apr 2025 17:21:42 +0100
Subject: [PATCH] [Rules] Add disclaimer to Terraform examples
---
src/content/docs/rules/cloud-connector/create-terraform.mdx | 4 ++++
.../examples/route-images-to-aws-s3-using-terraform.mdx | 2 ++
.../examples/define-single-configuration-terraform.mdx | 2 ++
.../origin-rules/examples/define-single-origin-terraform.mdx | 2 ++
src/content/docs/rules/snippets/create-terraform.mdx | 4 ++++
.../url-forwarding/single-redirects/terraform-example.mdx | 2 ++
6 files changed, 16 insertions(+)
diff --git a/src/content/docs/rules/cloud-connector/create-terraform.mdx b/src/content/docs/rules/cloud-connector/create-terraform.mdx
index 6e816a04195e23d..67758ae67c983ff 100644
--- a/src/content/docs/rules/cloud-connector/create-terraform.mdx
+++ b/src/content/docs/rules/cloud-connector/create-terraform.mdx
@@ -9,6 +9,8 @@ head:
content: Configure Cloud Connector using Terraform
---
+import { Render } from "~/components";
+
You can create Cloud Connector rules using the [Terraform Cloudflare provider](https://registry.terraform.io/providers/cloudflare/cloudflare/latest).
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
## Example configuration
+
+
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:
```tf
diff --git a/src/content/docs/rules/cloud-connector/examples/route-images-to-aws-s3-using-terraform.mdx b/src/content/docs/rules/cloud-connector/examples/route-images-to-aws-s3-using-terraform.mdx
index d3fe3c2c133a5eb..cfea1b2fdf35760 100644
--- a/src/content/docs/rules/cloud-connector/examples/route-images-to-aws-s3-using-terraform.mdx
+++ b/src/content/docs/rules/cloud-connector/examples/route-images-to-aws-s3-using-terraform.mdx
@@ -9,6 +9,8 @@ description: Route requests with a URI path starting with `/images` to a specifi
import { Render } from "~/components";
+
+
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.
```tf
diff --git a/src/content/docs/rules/configuration-rules/examples/define-single-configuration-terraform.mdx b/src/content/docs/rules/configuration-rules/examples/define-single-configuration-terraform.mdx
index 1e34bd96f858e0c..93a41759157cce7 100644
--- a/src/content/docs/rules/configuration-rules/examples/define-single-configuration-terraform.mdx
+++ b/src/content/docs/rules/configuration-rules/examples/define-single-configuration-terraform.mdx
@@ -11,6 +11,8 @@ description: Create a configuration rule using Terraform to turn off Email
import { Render } from "~/components";
+
+
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.
```tf
diff --git a/src/content/docs/rules/origin-rules/examples/define-single-origin-terraform.mdx b/src/content/docs/rules/origin-rules/examples/define-single-origin-terraform.mdx
index 645d1e8be51ffb0..be5856aed0ba44e 100644
--- a/src/content/docs/rules/origin-rules/examples/define-single-origin-terraform.mdx
+++ b/src/content/docs/rules/origin-rules/examples/define-single-origin-terraform.mdx
@@ -11,6 +11,8 @@ description: Create an origin rule using Terraform to override the `Host`
import { Render } from "~/components";
+
+
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.
```tf
diff --git a/src/content/docs/rules/snippets/create-terraform.mdx b/src/content/docs/rules/snippets/create-terraform.mdx
index a911725349c34c9..c092e55ded87f9e 100644
--- a/src/content/docs/rules/snippets/create-terraform.mdx
+++ b/src/content/docs/rules/snippets/create-terraform.mdx
@@ -9,12 +9,16 @@ head:
content: Configure Snippets using Terraform
---
+import { Render } from "~/components";
+
You can create Snippets using the [Terraform Cloudflare provider](https://registry.terraform.io/providers/cloudflare/cloudflare/latest).
To get started with Terraform for Cloudflare configuration, refer to [Terraform: Get started](/terraform/installing/).
## Example configuration
+
+
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.
```tf
diff --git a/src/content/docs/rules/url-forwarding/single-redirects/terraform-example.mdx b/src/content/docs/rules/url-forwarding/single-redirects/terraform-example.mdx
index c2b054aa9d8d04d..de27b932844cfdb 100644
--- a/src/content/docs/rules/url-forwarding/single-redirects/terraform-example.mdx
+++ b/src/content/docs/rules/url-forwarding/single-redirects/terraform-example.mdx
@@ -8,6 +8,8 @@ sidebar:
import { Render } from "~/components";
+
+
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.
```tf