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.
23 lines
456 B
Smarty
23 lines
456 B
Smarty
hetzner_cloud_apitoken = "YOUR_HETZNER_CLOUD_API_TOKEN"
|
|
|
|
# Hetzner-locations: https://docs.hetzner.com/cloud/general/locations/
|
|
k8s_servers = [
|
|
{ type = "cax11", location = "fsn1" }
|
|
]
|
|
k8s_agents = [
|
|
{ type = "cax11", location = "fsn1" }
|
|
]
|
|
|
|
ssh_keys = {
|
|
"SSH_KEY_NAME" = "YOUR_PUBLIC_SSH_KEY"
|
|
}
|
|
|
|
dns_zones = {
|
|
"example.com" = {
|
|
custom_records = [
|
|
{ name = "@", ttl = 86400, type = "TXT", value = "HELLO" }
|
|
]
|
|
}
|
|
"example.net" = {}
|
|
}
|