diff --git a/docs/resources/device_subnet_routes.md b/docs/resources/device_subnet_routes.md index 4e43ed7a..c5fa150d 100644 --- a/docs/resources/device_subnet_routes.md +++ b/docs/resources/device_subnet_routes.md @@ -25,6 +25,15 @@ resource "tailscale_device_subnet_routes" "sample_routes" { "2.0.0.0/24" ] } + +resource "tailscale_device_subnet_routes" "sample_exit_node" { + device_id = data.tailscale_device.sample_device.id + routes = [ + # Configure as an exit node + "0.0.0.0/0", + "::/0" + ] +} ``` diff --git a/examples/resources/tailscale_device_subnet_routes/resource.tf b/examples/resources/tailscale_device_subnet_routes/resource.tf index 6276cf53..cc3352de 100644 --- a/examples/resources/tailscale_device_subnet_routes/resource.tf +++ b/examples/resources/tailscale_device_subnet_routes/resource.tf @@ -10,3 +10,12 @@ resource "tailscale_device_subnet_routes" "sample_routes" { "2.0.0.0/24" ] } + +resource "tailscale_device_subnet_routes" "sample_exit_node" { + device_id = data.tailscale_device.sample_device.id + routes = [ + # Configure as an exit node + "0.0.0.0/0", + "::/0" + ] +}