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
This commit is contained in:
Sergei Poljanski 2026-11-12 16:01:58 +04:00
commit f912e9d955

View file

@ -16,8 +16,10 @@ terraform {
required_providers { required_providers {
hcloud = { hcloud = {
source = "hetznercloud/hcloud" source = "hetznercloud/hcloud"
version = "~> 1.54" # 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 = { minio = {
source = "aminueza/minio" source = "aminueza/minio"