github hetznercloud/terraform-provider-hcloud v1.58.0

5 days ago

Breaking Change for the Storage Box resource

Previously the hcloud_storage_box resource ignored any changes to the ssh_keys attribute to avoid accidentally deleting the Storage Box (SSH Keys can not be changed through the API after the Storage Box is created).

This is changed in this release, we now mark the resource as "requires replacement" if the SSH Keys are changed. If you want to ignore changes and keep the previous behaviour, please add the attribute to lifecycle.ignore_changes:

resource "hcloud_storage_box" "example" {
  // Other attributes

  ssh_keys = [ "..." ]
  lifecycle {
    ignore_changes = [ ssh_keys ]
  }
}

We are releasing this breaking change in a minor version as the Storage Box support is marked as experimental.

Deprecation of datacenter attribute for Primary IPs and Servers

The datacenter attributes is deprecated in Primary IPs and Servers API resources and will be removed after 1 July 2026. See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters for more details.

Therefore, datacenter attributes is deprecated in favour of the location attribute in the following Terraform resources/datasources:

  • hcloud_server
  • data.hcloud_server
  • data.hcloud_servers
  • hcloud_primary_ip
  • data.hcloud_primary_ip
  • data.hcloud_primary_ips

The location attribute already exists for Servers, and was added for Primary IPs.

The datacenter attribute will not be updated any more after it is no longer returned by the API. For existing resources this will keep the previous value, for new resources this will result in an empty string.

Please make sure to upgrade to v1.58.0+ before the removal date to avoid potential crashes in the provider.

Features

  • drop support for OpenTofu v1.8
  • add support for OpenTofu v1.11
  • storage-box: stop ignoring changes to ssh keys and replace resource instead (#1296)
  • deprecate datacenter in primary ips and servers (#1309)

Bug Fixes

  • storage-box: run actions serially (#1294)
  • zone: using variable for primary nameservers causes error (#1306)
  • storage-box: retry snapshot+subaccount create when locked (#1307)

Don't miss a new terraform-provider-hcloud release

NewReleases is sending notifications on new releases.