tailscale-policy: data source lookup wants hostname, not name #137
Labels
No labels
burndown-2026-06
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/infrastructure#137
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
First run of
terraform-tailscale-policy action=import-aclfailed at the data-source phase:The
tailscale_devicedata source'snameargument matches the device's full MagicDNS FQDN (e.g.kai-desktop-tower.tailXXXX.ts.net), not the short hostname. The short name belongs on thehostnameargument instead.Change
terraform/tailscale-policy/main.tf- switch thedata "tailscale_device" "physical"lookup fromname = each.keytohostname = each.key. Comment updated to explain the FQDN vs hostname split.Also commits the auto-generated
terraform/tailscale-policy/.terraform.lock.hcl(provider pin) thatterraform initproduced, matching the sibling tailscale modules.Filed by Claude.