Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Support setting custom device posture attributes​ #393

Open
timvy opened this issue Aug 7, 2024 · 0 comments
Open

FR: Support setting custom device posture attributes​ #393

timvy opened this issue Aug 7, 2024 · 0 comments
Labels
enhancement New feature or request terraform

Comments

@timvy
Copy link

timvy commented Aug 7, 2024

Is your feature request related to a problem? Please describe.
The provide currently does not support setting a custom posture attribute for a device. This is currently only possible via the API https://tailscale.com/api#tag/devices/POST/device/{deviceId}/attributes/{attributeKey}

Describe the solution you'd like
This could be implemented like this:

data "tailscale_device" "sample_device" {
  name = "device.example.com"
}

resource "tailscale_posture_attribute" "sample_posture_attribute" {
  device_id = data.tailscale_device.sample_device.id
  attributes {
    "custom:location"  = "bedroom"
    "custom:cloud" = "aws"
}

Additional context

@timvy timvy added the enhancement New feature or request label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request terraform
Projects
None yet
Development

No branches or pull requests

2 participants