Skip to content

Commit ce67f97

Browse files
committed
PCX update (based on SME review)
1 parent 0e0e2e1 commit ce67f97

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: Create a bulk redirect rule using Terraform
2+
title: Configure Bulk Redirects using Terraform
33
pcx_content_type: configuration
44
sidebar:
55
order: 6
6-
label: Create bulk redirect using Terraform
6+
label: Configure using Terraform
77
---
88

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

1111
<Render file="v4-code-snippets" product="terraform" />
1212

13-
The following example defines bulk redirect rules for an account using Terraform. The rule creates a redirect list item and a bulk URL redirect rule from the list to visitors based on the defined redirect list.
13+
This Terraform example configures account-level Bulk Redirects. It creates a [Bulk Redirect List](/rules/url-forwarding/bulk-redirects/concepts/#bulk-redirect-lists) populated with [URL redirects](/rules/url-forwarding/bulk-redirects/concepts/#url-redirects) and a corresponding [Bulk Redirect Rule](/rules/url-forwarding/bulk-redirects/concepts/#bulk-redirect-rules) to activate them.
1414

1515
```tf
1616
# Cloudflare account ID
@@ -28,7 +28,7 @@ variable "bulk_redirect_list_name" {
2828
default = "my_bulk_redirect_list_name"
2929
}
3030
31-
# Bulk redirect list item
31+
# Bulk redirect list item (URL redirect)
3232
variable "bulk_redirects" {
3333
type = map(object({
3434
source_url = string
@@ -37,8 +37,8 @@ variable "bulk_redirects" {
3737
}))
3838
3939
default = {
40-
"redirect1" = {
41-
source_url = "https://source.url/redirect/1"
40+
"redirect1" = {
41+
source_url = "https://source.url/redirect/1"
4242
target_url = "https://target.url/?redirect=1"
4343
status_code = 301
4444
}

0 commit comments

Comments
 (0)