Failed to create page rule: HTTP status 400: Page Rule limit has been met (1008)

Hello,

I am using terraform to deploy my Cloudflare, but when deploying the pager rules I get an error, Can someone please help with this?

terraform-apply_1 | module.page-rules.cloudflare_page_rule.cm-***: Creating…

terraform-apply_1 | module.page-rules.cloudflare_page_rule.id-***: Creating…

terraform-apply_1 | module.page-rules.cloudflare_page_rule.grafana-***: Creating…

terraform-apply_1 | module.page-rules.cloudflare_page_rule.cd-***: Creating…

terraform-apply_1 | ╷

terraform-apply_1 | │ Error: Failed to create page rule: HTTP status 400: Page Rule limit has been met (1008)

terraform-apply_1 | │

terraform-apply_1 | │ with module.page-rules.cloudflare_page_rule.cd-***,

terraform-apply_1 | │ on page-rules/main.tf line 9, in resource “cloudflare_page_rule” “cd-***”:

terraform-apply_1 | │ 9: resource “cloudflare_page_rule” “cd-***” {

terraform-apply_1 | │

terraform-apply_1 | ╵

terraform-apply_1 | ╷

terraform-apply_1 | │ Error: Failed to create page rule: HTTP status 400: Page Rule limit has been met (1008)

terraform-apply_1 | │


Terraform main.tf

terraform {
required_providers {
Cloudflare = {
source = “Cloudflare/Cloudflare”
}
}
}

resource “cloudflare_page_rule” “cd-sitecore” {
zone_id = var.cloudflare_zone_id
target = “${var.sitecore_cd_host_name}/*”
priority = 1

actions {
host_header_override = “cd.sitecore”
waf = “on”
}
}

resource “cloudflare_page_rule” “cm-sitecore” {
zone_id = var.cloudflare_zone_id
target = “${var.sitecore_cm_host_name}/*”
priority = 2

actions {
host_header_override = “cm.sitecore”
}
}

resource “cloudflare_page_rule” “id-sitecore” {
zone_id = var.cloudflare_zone_id
target = “${var.sitecore_id_host_name}/*”
priority = 3

actions {
host_header_override = “id.sitecore”
}
}

resource “cloudflare_page_rule” “grafana-sitecore” {
zone_id = var.cloudflare_zone_id
target = “${var.grafana_host_name}/*”
priority = 4

actions {
host_header_override = “grafana.sitecore”
}
}

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.