Terraform resource: tailscale acl

From wikieduonline
Revision as of 15:16, 18 July 2024 by Welcome (talk | contribs)
Jump to navigation Jump to search

Official example

resource "tailscale_acl" "as_json" {
 acl = jsonencode({
   acls : [
     {
       // Allow all users access to all ports.
       action = "accept",
       users  = ["*"],
       ports  = ["*:*"],
     },
   ],
 })
}
resource "tailscale_acl" "as_hujson" {
  acl = <<EOF
  {
    // Comments in HuJSON policy are preserved when the policy is applied.
    "acls": [
      {
        // Allow all users access to all ports.
        action = "accept",
        users  = ["*"],
        ports  = ["*:*"],
      },
    ],
  }
  EOF
}

See also

Advertising: