terraform-provider-tailscale
terraform-provider-tailscale copied to clipboard
What's the correct way of using tailscale_device_subnet_routes ?
If I update the routes via provider, I still can't access new routes.
Admin UI shows me that the new routes are not advertised by the node
This device no longer advertises this subnet route. Remove the route here, or re-run tailscale up --advertise-routes with x.x.x.x/32 included.
What's the correct and intended way of managing routes using the provider? Do I need manually update the routes on the device too?
If I understand correctly, tailscale_device_subnet_routes only approves the routes configured. In order for them to actually work, the client has to advertise them.
To update advertised routes for an existing client, use
tailscale set --advertise-routes xxxx
It would be nice if tailscale daemon would advertise routes configured via API.