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:
parent
dc0f732d0f
commit
f912e9d955
1 changed files with 4 additions and 2 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue