Skip to content

cloudflare_argo_smart_routing importing doesn't read the actual value #5640

@psapezhka

Description

@psapezhka

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 v1.12.1
on linux_amd64

  • provider registry.terraform.io/cloudflare/cloudflare v5.5.0

Affected resource(s)

cloudflare_argo_smart_routing

Terraform configuration files

resource "cloudflare_argo_smart_routing" "easybrain_argo" {
  zone_id = cloudflare_zone.easybrain.id
  value   = "on"
}

Link to debug output

confidential

Panic output

Expected output

Actual output

Steps to reproduce

  1. define cloudflare_argo_smart_routing resource
  2. import it
  3. apply shows changing of the value
  4. inspect state, find "value": null

Additional factoids

part of state after the import

    {       
      "module": "module.cloudflare",
      "mode": "managed",
      "type": "cloudflare_argo_smart_routing",
      "name": "easybrain_argo",
      "provider": "module.cloudflare.provider[\"registry.terraform.io/cloudflare/cloudflare\"]",
      "instances": [
        {   
          "schema_version": 0,
          "attributes": {
            "id": "<<redacted>>",
            "value": null,
            "zone_id": "<<redacted>>"
          },
          "sensitive_attributes": [],
          "identity_schema_version": 0,
          "dependencies": [
            "module.cloudflare.cloudflare_zone.easybrain"
          ]
        }
      ]
    },

Moreover, refresh gives the same result, while argo routing is definitely enable with the UI

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