tailscale / terraform-provider-tailscale

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

tailscale: update state after modification functions for resources #362

Closed mpminardi closed 2 months ago

mpminardi commented 2 months ago

Add calls to appropriate Read functions at the end of Create and Update functions to follow recommended best practices from HashiCorp. This is done to prevent scenarios where Terraform could otherwise have stale state after resource creation or update (from default or computed values being populated server side on the object as an example) which can result in unexpected drift in subsequent plan / apply operations.

Fixes https://github.com/tailscale/corp/issues/19698