Removed datacenter from Server and Primary IP
The deprecated datacenter attribute was marked for removal from the Server and Primary IP resources/data sources. You must use the location attribute instead. Since the property was already removed from the Hetzner Cloud API, we do not consider this a breaking change (see changelog entry).
Important
Action required: Please update all configuration that uses the datacenter attribute to use the location attribute instead.
Before:
resource "hcloud_server" "main" {
// ...
datacenter = "hel1-dc1"
}
resource "hcloud_primary_ip" "main" {
// ...
datacenter = "hel1-dc1"
}After:
resource "hcloud_server" "main" {
// ...
location = "hel1"
}
resource "hcloud_primary_ip" "main" {
// ...
location = "hel1"
}