Terraform resource: tailscale acl
Jump to navigation
Jump to search
tailscale_ acl (doc)
Official example[edit]
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[edit]
Advertising: