Hetzner's legacy DNS console (dns.hetzner.com) and its old DNS API have been permanently shut down. All DNS zone management has been migrated entirely to the main Hetzner Cloud Console. Since I hadn't made any changes in the last couple of months I was simply not affected by that change until very recently. So, this change drops the 3rd-party provider I had used previously and now applies the official `hcloud`-provider. The migrations was a bit of a hassle, because I had to manually remove the obsolete references from the Tofu-state. Then I checked the migrated sources and decided to simply drop the migrated DNS-zones altogether and simply run `tofu apply` once more.
39 lines
797 B
HCL
39 lines
797 B
HCL
terraform {
|
|
backend "s3" {
|
|
bucket = "nemoinho-tfstate"
|
|
key = "base-infra/terraform.tfstate"
|
|
region = "eu-central-003"
|
|
endpoints = {
|
|
s3 = "https://s3.eu-central-003.backblazeb2.com"
|
|
}
|
|
skip_credentials_validation = true
|
|
skip_region_validation = true
|
|
skip_metadata_api_check = true
|
|
skip_requesting_account_id = true
|
|
skip_s3_checksum = true
|
|
}
|
|
|
|
required_providers {
|
|
hcloud = {
|
|
source = "hetznercloud/hcloud"
|
|
version = "1.60.0"
|
|
}
|
|
random = {
|
|
source = "hashicorp/random"
|
|
version = "3.8.1"
|
|
}
|
|
external = {
|
|
source = "hashicorp/external"
|
|
version = "2.3.5"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "hcloud" {
|
|
token = var.hetzner_cloud_apitoken
|
|
}
|
|
|
|
provider "random" {}
|
|
|
|
provider "external" {}
|