tailscale / terraform-provider-tailscale

Terraform provider for Tailscale
https://registry.terraform.io/providers/tailscale/tailscale
MIT License
248 stars 44 forks source link

Feature Request: Map output of device datasource #352

Open Cyb3r-Jak3 opened 3 months ago

Cyb3r-Jak3 commented 3 months ago

Is your feature request related to a problem? Please describe.

Currently, the tailscale_devices outputs as a list of objects, which makes it hard to use. My goal it to be able to add DNS records from IP address of the private network, which is harder to do in the current state.

Describe the solution you'd like

It would be great if tailscale_devices (or a new datasource for backwards compatibility) was a map that had the same information but used the hostname as a key value, so it could be looked up.

Additional context

I am happy to work on this feature if it decided it should be added.