terraform-provider-tailscale: Unable to add tests to ACL
I have been having issues implementing ACL tests with the Terraform provider. Once I add the tests section and try to terraform apply
I receive the following error.
│ Error: Failed to set ACL
│
│ with tailscale_acl.cio_acl,
│ on main.tf line 1, in resource "tailscale_acl" "cio_acl":
│ 1: resource "tailscale_acl" "cio_acl" {
│
│ test(s) failed (400)
I am able to apply the same JSON file through the Tailscale API, so this issue only occurs with the Terraform provider.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16
Commits related to this issue
- Add new policy syntax fields to ACL This commit adds the source, destination and protocol fields for ACLs which are the intended replacement for users and ports. Related to https://github.com/davids... — committed to tailscale/tailscale-client-go by davidsbond 2 years ago
- Add new policy syntax fields to ACL (#12) This commit adds the source, destination and protocol fields for ACLs which are the intended replacement for users and ports. Related to https://github.c... — committed to tailscale/tailscale-client-go by davidsbond 2 years ago
Going to keep this open until we’re sure your stuff works 😛. Latest release is just publishing now.
Hi @davidsbond. Using v.0.9.3 gives me a new error.
I looks like the current ACL file syntax for tests only uses the keys
src
,accept
, anddeny
. https://tailscale.com/kb/1018/acls/#testsThanks again for all of your help here.
I will do a patch release now and hopefully your ACL should make it to the API unhindered! Give the release process some time and then try version 0.9.1. Please raise an issue or reopen this one if you face any more problems