diff --git a/src/content/docs/rules/transform/managed-transforms/configure.mdx b/src/content/docs/rules/transform/managed-transforms/configure.mdx index c022ae8b9f04f33..58dfd3496464f55 100644 --- a/src/content/docs/rules/transform/managed-transforms/configure.mdx +++ b/src/content/docs/rules/transform/managed-transforms/configure.mdx @@ -185,24 +185,6 @@ The response will include all the available Managed Transforms and their new sta -Use the `cloudflare_managed_headers` Terraform resource to configure Managed Transforms. For example: - -```tf -resource "cloudflare_managed_headers" "tf_example" { - zone_id = "" - - managed_request_headers { - id = "add_visitor_location_headers" - enabled = true - } - - managed_response_headers { - id = "remove_x-powered-by_header" - enabled = true - } -} -``` - -Make sure you include the Managed Transforms you are updating in the correct object (`managed_request_headers` or `managed_response_headers`). + diff --git a/src/content/docs/rules/transform/request-header-modification/create-api.mdx b/src/content/docs/rules/transform/request-header-modification/create-api.mdx index 27980f23fe5603d..7f4cea2d6a2dc88 100644 --- a/src/content/docs/rules/transform/request-header-modification/create-api.mdx +++ b/src/content/docs/rules/transform/request-header-modification/create-api.mdx @@ -11,6 +11,8 @@ import { Details, Render, APIRequest } from "~/components"; Use the [Rulesets API](/ruleset-engine/rulesets-api/) to create Request Header Transform Rules via API. Refer to the [Rules examples gallery](/rules/transform/examples/?operation=Request+modification) for common use cases. +If you are using Terraform, refer to [Transform Rules configuration using Terraform](/terraform/additional-configurations/transform-rules/#create-a-request-header-transform-rule). + ## Basic rule settings When creating a request header transform rule via API, make sure you: diff --git a/src/content/docs/rules/transform/response-header-modification/create-api.mdx b/src/content/docs/rules/transform/response-header-modification/create-api.mdx index ba191b7516fc829..a2e40729ee2734f 100644 --- a/src/content/docs/rules/transform/response-header-modification/create-api.mdx +++ b/src/content/docs/rules/transform/response-header-modification/create-api.mdx @@ -10,6 +10,8 @@ import { Details, Render, APIRequest } from "~/components"; Use the [Rulesets API](/ruleset-engine/rulesets-api/) to create Response Header Transform Rules via API. Refer to the [Rules examples gallery](/rules/transform/examples/?operation=Response+modification) for common use cases. +If you are using Terraform, refer to [Transform Rules configuration using Terraform](/terraform/additional-configurations/transform-rules/#create-a-response-header-transform-rule). + ## Basic rule settings When creating a response header transform rule via API, make sure you: diff --git a/src/content/docs/rules/transform/url-rewrite/create-api.mdx b/src/content/docs/rules/transform/url-rewrite/create-api.mdx index de1c39b50aea1da..bd6957bcdea004e 100644 --- a/src/content/docs/rules/transform/url-rewrite/create-api.mdx +++ b/src/content/docs/rules/transform/url-rewrite/create-api.mdx @@ -10,6 +10,8 @@ import { Details, Render, APIRequest } from "~/components"; Use the [Rulesets API](/ruleset-engine/rulesets-api/) to create URL Rewrite Rules via API. Refer to the [Rules examples gallery](/rules/transform/examples/?operation=Rewrite+URL) for common use cases. +If you are using Terraform, refer to [Transform Rules configuration using Terraform](/terraform/additional-configurations/transform-rules/#create-a-url-rewrite-rule). + ## Basic rule settings When creating a URL rewrite rule via API, make sure you: diff --git a/src/content/docs/terraform/additional-configurations/transform-rules.mdx b/src/content/docs/terraform/additional-configurations/transform-rules.mdx index 620bfc5745a6bca..e1f123a6d6f776f 100644 --- a/src/content/docs/terraform/additional-configurations/transform-rules.mdx +++ b/src/content/docs/terraform/additional-configurations/transform-rules.mdx @@ -16,6 +16,14 @@ This page provides examples of creating [Transform Rules](/rules/transform/) in - [Create a URL rewrite rule](#create-a-url-rewrite-rule) - [Create a request header transform rule](#create-a-request-header-transform-rule) - [Create a response header transform rule](#create-a-response-header-transform-rule) +- [Configure Managed Transforms](#configure-managed-transforms) + +If you are using the Cloudflare API, refer to the following resources: + +- [Create a URL rewrite rule via API](/rules/transform/url-rewrite/create-api/) +- [Create a request header transform rule via API](/rules/transform/request-header-modification/create-api/) +- [Create a response header transform rule via API](/rules/transform/response-header-modification/create-api/) +- [Configure Managed Transforms](/rules/transform/managed-transforms/configure/) ## Before you start @@ -164,3 +172,11 @@ resource "cloudflare_ruleset" "transform_modify_response_headers" {
For more information on modifying response headers, refer to [Response Header Transform Rules](/rules/transform/response-header-modification/). + +## Configure Managed Transforms + + + + + +For more information on Managed Transforms, refer to [Managed Transforms](/rules/transform/managed-transforms/). diff --git a/src/content/partials/rules/transform/terraform-managed-transforms-example.mdx b/src/content/partials/rules/transform/terraform-managed-transforms-example.mdx new file mode 100644 index 000000000000000..0f61b23ca0bf523 --- /dev/null +++ b/src/content/partials/rules/transform/terraform-managed-transforms-example.mdx @@ -0,0 +1,23 @@ +--- +{} +--- + +Use the `cloudflare_managed_headers` Terraform resource to configure Managed Transforms. For example: + +```tf +resource "cloudflare_managed_headers" "tf_example" { + zone_id = "" + + managed_request_headers { + id = "add_visitor_location_headers" + enabled = true + } + + managed_response_headers { + id = "remove_x-powered-by_header" + enabled = true + } +} +``` + +Make sure you include the Managed Transforms you are updating in the correct object (`managed_request_headers` or `managed_response_headers`).