Skip to content

FR: Support setting custom device posture attributes​ #393

@timvy

Description

@timvy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    frNew feature or requestterraform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions