Skip to content

cloudflare_zero_trust_list missing type="DEVICE" #6362

@ZetaTwo

Description

@ZetaTwo

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

$ terraform -v
Terraform v1.13.4
on linux_amd64
+ provider registry.terraform.io/cloudflare/cloudflare v5.11.0
+ provider registry.terraform.io/hashicorp/external v2.3.5

Affected resource(s)

  • cloudflare_zero_trust_list
  • cloudflare_zero_trust_device_posture_rule

Terraform configuration files

resource "cloudflare_zero_trust_list" "trusted-android-devices" {
  account_id  = var.cloudflare_account_id
  name        = "Trusted Android Devices"
  type        = "DEVICE"
  description = "Trusted Android Devices"

  items = ["b12e31f6-5b3c-4c83-8475-7610b32c4d02"]
}

resource "cloudflare_zero_trust_device_posture_rule" "android-device-id" {
  account_id  = var.cloudflare_account_id
  name        = "Trusted Android Device"
  type        = "unique_client_id"
  description = "Trusted Android Device"
  input = {
    id = cloudflare_zero_trust_list.trusted-android-devices.id
  }
  match = [{
    platform = "android"
  }]
}

Link to debug output

https://gist.github.com/ZetaTwo/e20e68265008caeb27b0eb2a1cf0fc25

Panic output

No response

Expected output

I expect to be able to create this list

Actual output

$ terraform apply

│ Error: Invalid Attribute Value Match

│ with cloudflare_zero_trust_list.trusted-android-devices,
│ on client.tf line 70, in resource "cloudflare_zero_trust_list" "trusted-android-devices":
│ 70: type = "DEVICE"

│ Attribute type value must be one of: ["SERIAL" "URL" "DOMAIN" "EMAIL" "IP"], got: "DEVICE"

Steps to reproduce

  1. Use the above terraform
  2. Try to apply it

Additional factoids

If I create a list manually via the UI and fetch it from the API, it looks like this:

 {
      "id": "d41898ce-2da6-4831-bba4-e65caa0afdf3",
      "name": "test1",
      "description": "",
      "type": "DEVICE",
      "created_at": "2025-10-22T15:54:39Z",
      "updated_at": "2025-10-22T15:54:39Z"
    }

This is why I was led to believe that "DEVICE" would be the correct option.

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.version/5Categorizes issue or PR as related to version 5 of the provider.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions