kube-hetzner / terraform-hcloud-kube-hetzner

Optimized and Maintenance-free Kubernetes on Hetzner Cloud in one command!
MIT License
2.4k stars 371 forks source link

Replace null_resource with terraform_data #1548

Open janfrederik opened 6 days ago

janfrederik commented 6 days ago

As from Terraform 1.4, the doc suggests to use terraform_data instead of null_resource. See https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource.

To avoid destroy and recreation of these resources, terraform>=1.9 allows the moved statement to do exactly this refactoring. Works like a charm :-)

For details, see https://registry.terraform.io/providers/hashicorp/null/latest/docs/guides/terraform-migration#migrating-existing-configurations.