tailscale / terraform-provider-tailscale

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

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

Closed bpatwa-sanimax closed 4 months ago

bpatwa-sanimax commented 5 months 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 5 months 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 4 months 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 4 months 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 4 months 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 4 months ago

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