Skip to content

Commit 6316235

Browse files
fix: page rule issues (#5601)
1 parent 6bf6633 commit 6316235

File tree

6 files changed

+2249
-84
lines changed

6 files changed

+2249
-84
lines changed

docs/resources/page_rule.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ resource "cloudflare_page_rule" "example_page_rule" {
1818
priority = 1
1919
status = "active"
2020
actions = {
21-
forwarding_url = "https://example.com/foo"
22-
status_code = 301
21+
forwarding_url = {
22+
url = "https://example.com/foo"
23+
status_code = 301
24+
}
2325
}
2426
}
2527
```

examples/resources/cloudflare_page_rule/resource.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ resource "cloudflare_page_rule" "example_page_rule" {
44
priority = 1
55
status = "active"
66
actions = {
7-
forwarding_url = "https://example.com/foo"
8-
status_code = 301
7+
forwarding_url = {
8+
url = "https://example.com/foo"
9+
status_code = 301
10+
}
911
}
1012
}

0 commit comments

Comments
 (0)