tailscale / terraform-provider-tailscale

Terraform provider for Tailscale
https://registry.terraform.io/providers/tailscale/tailscale
MIT License
248 stars 44 forks source link

Cannot assign ACL in terraform despite tag existing via online console #380

Closed bpatwa-sanimax closed 1 week ago

bpatwa-sanimax commented 1 month ago

Describe the bug

I cannot assign a new ACL in terraform despite the tag existing via online console. Why does this happen? Why is it not able access the tag information?

Desktop:

bpatwa-sanimax commented 1 month ago

Fixed. You need to send your full set of ACL and not just the part you want to update (as shown in docs, which are immensely lacking in detail). Tested it on Client API in Python and was reliably able to recreate the error and discover ways to fix it.

bpatwa-sanimax commented 3 weeks ago

The issue persists. Even simply fetching existing acl from the tailnet and applying it back to the resource gives an error during terraform apply.

mpminardi commented 1 week ago

Hello @bpatwa-sanimax! Is the error you are seeing now still the same validation error that you originally reported, or are you seeing a different error now when you fetch the existing ACL and attempt to apply that?

bpatwa-sanimax commented 1 week ago

Hello @mpminardi thanks for your response. I was able to debug the error from the error messages. I didn't knew the error messages existed in the diagnostics tab.

mpminardi commented 1 week ago

No worries, glad to hear you were able to resolve your issue!