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

Most upvoted comments

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.

│ 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" {
│
│ json: unknown field "dst" (400)

I looks like the current ACL file syntax for tests only uses the keys src, accept, and deny. https://tailscale.com/kb/1018/acls/#tests

Thanks 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