cloudflare / terraform-provider-cloudflare

Cloudflare Terraform Provider
https://registry.terraform.io/providers/cloudflare/cloudflare
Mozilla Public License 2.0
759 stars 587 forks source link

cloudflare_teams_list not updating items_with_description #4119

Open diplatis opened 2 hours ago

diplatis commented 2 hours ago

Confirmation

Terraform and Cloudflare provider version

Terraform 1.6.6 Cloudflare provider 4.40.0

Affected resource(s)

cloudflare_teams_list

Terraform configuration files

resource "cloudflare_teams_list" "byod_devices_new" {
  account_id  = var.cloudflare_account_id
  name        = "BYOD devices with comments"
  type        = "SERIAL"
  description = "Serial numbers for all BYOD onboarded devices."
  items_with_description = [
    {
      value       = "XSJSAASD"
      description = "Device 1"
    },
    {
      value       = "UINLNLLN"
      description = "Device 2"
    },
    {
      value       = "RYWEUEUW"
      description = "Device 3"
    }
  ]
}

Link to debug output

-

Panic output

No response

Expected output

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place
Terraform will perform the following actions:
  # cloudflare_teams_list.byod_devices_new will be updated in-place
  ~ resource "cloudflare_teams_list" "byod_devices_new" {
        id                     = "7a3a0d70-1ef0-46e0-9264-9898ffa9e219"
      ~ items_with_description = [
          - {
              - description = "Sample Description"
              - value       = "ASALAKLSJD"
            },
          - {
              - description = "Sample Description"
              - value       = "ALKSJDLAKSJD"
            },
          - {
              - description = "Sample Description"
              - value       = "AKJSAEO"
            },
          - {
              - description = "Sample Description"
              - value       = "WIEUR90WE"
            },
          - {
              - description = "REDUCTED laptop"
              - value       = "82938423J"
            },
          - {
              - description = "REDUCTED"
              - value       = "AKLSDJ2111"
            },
          - {
              - description = "REDUCTED"
              - value       = "XMCNV,MNXCV3"
            },
          - {
              - description = "REDUCTED"
              - value       = "KSJASDPQOWE"
            },
          + {
              + description = "Device 1"
              + value       = "XSJSAASD"
            },
          + {
              + description = "Device 2"
              + value       = "UINLNLLN"
            },
          + {
              + description = "Device 3"
              + value       = "RYWEUEUW"
            },
        ]
        name                   = "BYOD devices with comments"
        # (4 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
cloudflare_teams_list.byod_devices_new: Modifying... [id=7a3a0d70-1ef0-46e0-9264-9898ffa9e219]
cloudflare_teams_list.byod_devices_new: Modifications complete after 1s [id=7a3a0d70-1ef0-46e0-9264-9898ffa9e219]

Actual output

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place
Terraform will perform the following actions:
  # cloudflare_teams_list.byod_devices_new will be updated in-place
  ~ resource "cloudflare_teams_list" "byod_devices_new" {
        id                     = "7a3a0d70-1ef0-46e0-9264-9898ffa9e219"
      ~ items_with_description = [
          - {
              - description = "Sample Description"
              - value       = "ASALAKLSJD"
            },
          - {
              - description = "Sample Description"
              - value       = "ALKSJDLAKSJD"
            },
          - {
              - description = "Sample Description"
              - value       = "AKJSAEO"
            },
          - {
              - description = "Sample Description"
              - value       = "WIEUR90WE"
            },
          - {
              - description = "REDUCTED laptop"
              - value       = "82938423J"
            },
          - {
              - description = "REDUCTED"
              - value       = "AKLSDJ2111"
            },
          - {
              - description = "REDUCTED"
              - value       = "XMCNV,MNXCV3"
            },
          - {
              - description = "REDUCTED"
              - value       = "KSJASDPQOWE"
            },
          + {
              + description = "Device 1"
              + value       = "XSJSAASD"
            },
          + {
              + description = "Device 2"
              + value       = "UINLNLLN"
            },
          + {
              + description = "Device 3"
              + value       = "RYWEUEUW"
            },
        ]
        name                   = "BYOD devices with comments"
        # (4 unchanged attributes hidden)
    }
Plan: 0 to add, 1 to change, 0 to destroy.
cloudflare_teams_list.byod_devices_new: Modifying... [id=7a3a0d70-1ef0-46e0-9264-9898ffa9e219]
cloudflare_teams_list.byod_devices_new: Modifications complete after 1s [id=7a3a0d70-1ef0-46e0-9264-9898ffa9e219]

Steps to reproduce

  1. Apply
  2. Check successful output
  3. Check Zero Trust device list in dashboard that has not been updated like in the screenshot below Screenshot from 2024-09-24 13-06-18

Additional factoids

No response

References

No response

github-actions[bot] commented 2 hours ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue