-
Notifications
You must be signed in to change notification settings - Fork 767
Open
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.version/5Categorizes issue or PR as related to version 5 of the provider.Categorizes issue or PR as related to version 5 of the provider.
Description
Confirmation
- This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
- I have searched the issue tracker and my issue isn't already found.
- I have replicated my issue using the latest version of the provider and it is still present.
Terraform and Cloudflare provider version
I'm trying to create a "custom log field" (https://developers.cloudflare.com/logs/reference/custom-fields/) with the v5 provider
Affected resource(s)
cloudflare_ruleset
Terraform configuration files
resource "cloudflare_ruleset" "log_traces" {
# Note: can only be enabled on enterprise zones
zone_id = cloudflare_zone.mydomain.id
name = "log trace data"
description = "logs (existing) b3 header for tracing. Note that cloudflare only send the value pre-transform"
kind = "zone"
phase = "http_log_custom_fields"
rules = [{
action = "log_custom_field"
action_parameters = {
request_fields = [
{ name = "b3" },
]
}
expression = "true"
description = "b3 header"
enabled = true
}]
}Link to debug output
no
Panic output
No response
Expected output
success
Actual output
400 Bad Request {
│ "result": null,
│ "success": false,
│ "errors": [
│ {
│ "code": 20217,
│ "message": "'zone' is not a valid value for kind because exceeded maximum number of zone rulesets for phase http_log_custom_fields",
│ "source": {
│ "pointer": "/kind"
│ }
│ }
│ ],
│ "messages": []
│ }
│
Steps to reproduce
.
Additional factoids
This previously worked in v4. (via #1630) (I've migrated to the new schema for the resource in my example above though)
References
No response
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.version/5Categorizes issue or PR as related to version 5 of the provider.Categorizes issue or PR as related to version 5 of the provider.