Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# Changelog

## [v1.58.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.58.0)

### 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`](https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle#ignore_changes):

```terraform
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](https://github.com/hetznercloud/terraform-provider-hcloud/issues/1285).

### 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)

## [v1.57.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.57.0)

### Storage Box API Experimental
Expand Down
Loading