Skip to content

Undocumented API token permissions for cloudflare_email_routing_rule resource #6616

@andrewhaller

Description

@andrewhaller

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

Cloudflare has 100s of permissions that can be applied to an api_token, and this is ZERO (absolutely zero) indication as to which permissions are required for ANY resource, let alone this very important resource. Get it together!!!!

Affected resource(s)

cloudflare_email_routing_rule

Terraform configuration files

resource "cloudflare_email_routing_rule" "worker_route" {
  zone_id  = local.zone_id
  name     = "route_to_worker"
  priority = 1
  enabled  = true

  matchers = [{
    type  = "literal"
    field = "to"
    value = "[email protected]
  }]

  actions = [{
    type  = "worker"
    value = [cloudflare_worker.this.id]
  }]
}

Link to debug output

NA

Panic output

No response

Expected output

NA

Actual output

NA

Steps to reproduce

NA

Additional factoids

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions