terraform-provider-tailscale
terraform-provider-tailscale copied to clipboard
Support for Apps management
It would be nice to be able to manage the Apps configuration for a Tailnet via Terraform. Specifically, the entries found on https://login.tailscale.com/admin/apps Right now we are managing it via clicking around in the UI.
Additional context Thanks for supporting Terraform!
cc: @phinze @kabirsikand
Apps for App Connectors are configured directly in the policy file - the Visual Editor in the admin console is just editing your policy file directly.
So, you can use the tailscale_acl resource to manage apps following the nodeAttrs syntax shown at Set up an app connector - e.g.
resource "tailscale_acl" "main" {
acl = <<EOF
{
"nodeAttrs": [
{
"target": ["*"],
"app": {
"tailscale.com/app-connectors": [
{
"name": "GitHub",
"connectors": ["tag:github-app-connector"],
"domains": ["github.com", "*.github.com"]
}
]
}
}
]
}
EOF
}
Thanks @clstokes . I'm closing this for now. @nairb774 please let us know if you run into any issues with the suggested solution.