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

Document that ACL tests are run when creating and updating tailscale_acl resources. #325

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/resources/acl.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ page_title: "tailscale_acl Resource - terraform-provider-tailscale"
subcategory: ""
description: |-
The acl resource allows you to configure a Tailscale ACL. See https://tailscale.com/kb/1018/acls for more information. Note that this resource will completely overwrite existing ACL contents for a given tailnet.
If tests are defined in the ACL (the top-level "tests" section), ACL validation will occur before creation and update operations are applied.
---

# tailscale_acl (Resource)

The acl resource allows you to configure a Tailscale ACL. See https://tailscale.com/kb/1018/acls for more information. Note that this resource will completely overwrite existing ACL contents for a given tailnet.

If tests are defined in the ACL (the top-level "tests" section), ACL validation will occur before creation and update operations are applied.

## Example Usage

```terraform
Expand Down
6 changes: 5 additions & 1 deletion tailscale/resource_acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ import (
"github.com/tailscale/tailscale-client-go/tailscale"
)

const resourceACLDescription = `The acl resource allows you to configure a Tailscale ACL. See https://tailscale.com/kb/1018/acls for more information. Note that this resource will completely overwrite existing ACL contents for a given tailnet.

If tests are defined in the ACL (the top-level "tests" section), ACL validation will occur before creation and update operations are applied.`

func resourceACL() *schema.Resource {
return &schema.Resource{
Description: "The acl resource allows you to configure a Tailscale ACL. See https://tailscale.com/kb/1018/acls for more information. Note that this resource will completely overwrite existing ACL contents for a given tailnet.",
Description: resourceACLDescription,
ReadContext: resourceACLRead,
CreateContext: resourceACLCreate,
UpdateContext: resourceACLUpdate,
Expand Down
Loading