From f912e9d9555c6a355d55c6e15839bab8e76ad52a Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Thu, 12 Nov 2026 16:01:58 +0400 Subject: [PATCH] terraform: require hcloud provider 1.70 With provider 1.54 the plan replaces both servers. Hetzner stopped returning a server's datacenter, the old provider derived the location from it, and a location that reads back empty differs from "hel1", which forces replacement. Only prevent_destroy stood in the way. Provider 1.70.2 reads the location properly: the same plan then shows the two firewall updates and nothing else. The lock file is not tracked, so raise the version constraint to keep the old provider out. Run terraform init -upgrade once in existing checkouts. Assisted-by: Claude:fable-5-2 --- terraform/providers.tf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/terraform/providers.tf b/terraform/providers.tf index b2715d1..5d1bbae 100644 --- a/terraform/providers.tf +++ b/terraform/providers.tf @@ -16,8 +16,10 @@ terraform { required_providers { hcloud = { - source = "hetznercloud/hcloud" - version = "~> 1.54" + source = "hetznercloud/hcloud" + # 1.54 no longer reads a server's location from the Hetzner API and + # plans to replace every server because of it. Do not go below 1.70. + version = "~> 1.70" } minio = { source = "aminueza/minio"