|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [v1.58.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.58.0) |
| 4 | + |
| 5 | +### Breaking Change for the *Storage Box* resource |
| 6 | + |
| 7 | +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). |
| 8 | + |
| 9 | +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): |
| 10 | + |
| 11 | +```terraform |
| 12 | +resource "hcloud_storage_box" "example" { |
| 13 | + // Other attributes |
| 14 | +
|
| 15 | + ssh_keys = [ "..." ] |
| 16 | + lifecycle { |
| 17 | + ignore_changes = [ ssh_keys ] |
| 18 | + } |
| 19 | +} |
| 20 | +``` |
| 21 | + |
| 22 | +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). |
| 23 | + |
| 24 | +### Deprecation of `datacenter` attribute for Primary IPs and Servers |
| 25 | + |
| 26 | +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. |
| 27 | + |
| 28 | +Therefore, `datacenter` attributes is deprecated in favour of the `location` attribute in the following Terraform resources/datasources: |
| 29 | + |
| 30 | +- `hcloud_server` |
| 31 | +- `data.hcloud_server` |
| 32 | +- `data.hcloud_servers` |
| 33 | +- `hcloud_primary_ip` |
| 34 | +- `data.hcloud_primary_ip` |
| 35 | +- `data.hcloud_primary_ips` |
| 36 | + |
| 37 | +The `location` attribute already exists for Servers, and was added for Primary IPs. |
| 38 | + |
| 39 | +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. |
| 40 | + |
| 41 | +Please make sure to upgrade to `v1.58.0+` before the removal date to avoid potential crashes in the provider. |
| 42 | + |
| 43 | +### Features |
| 44 | + |
| 45 | +- drop support for OpenTofu v1.8 |
| 46 | +- add support for OpenTofu v1.11 |
| 47 | +- **storage-box**: stop ignoring changes to ssh keys and replace resource instead (#1296) |
| 48 | +- deprecate datacenter in primary ips and servers (#1309) |
| 49 | + |
| 50 | +### Bug Fixes |
| 51 | + |
| 52 | +- **storage-box**: run actions serially (#1294) |
| 53 | +- **zone**: using variable for primary nameservers causes error (#1306) |
| 54 | +- **storage-box**: retry snapshot+subaccount create when locked (#1307) |
| 55 | + |
3 | 56 | ## [v1.57.0](https://github.com/hetznercloud/terraform-provider-hcloud/releases/tag/v1.57.0) |
4 | 57 |
|
5 | 58 | ### Storage Box API Experimental |
|
0 commit comments