Skip to content

tailscale_device_authorization fails with "no manageable device matching this ID found (404)" if device is removed #585

@dmi-try

Description

@dmi-try

Describe the bug
When a device is manually deleted from Tailscale but the Terraform state still references it,
terraform apply crashes with "no manageable device matching this ID found (404)" instead of
gracefully handling the missing resource.

To Reproduce

  1. Create instance and related tailscale_device_authorization resources
  2. Delete instance manually
  3. Run terraform apply
  4. See Error: Failed to fetch device

Expected behaviour
tailscale_device_authorization for missed devices should also be marked as missed

Desktop (please complete the following information):

  • OS: Ubuntu Linux 24.04
  • Terraform Version v1.13.4 amd64
  • Provider Version "0.24.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions