I’m trying to create a ruleset with http_ratelimit phase using Terraform. I use dynamic blocks for several rate limit rules. The issue is I believe within ratelimit block, I’m getting this error, when I include requests_to_origin = true field
Error: Invalid Configuration for Read-Only Attribute
│
│ with module.cloudflare_record.cloudflare_ruleset.zone_rate_limiting,
│ on ../../modules/cloudflare/main.tf line 72, in resource "cloudflare_ruleset" "zone_rate_limiting":
│ 72: resource "cloudflare_ruleset" "zone_rate_limiting" {
│
│ Cannot set value for this attribute as the provider has marked it as
│ read-only. Remove the configuration line setting the value.
│
│ Refer to the provider documentation or contact the provider developers for
│ additional information about configurable and read-only attributes that are
│ supported.