resource "http" "create_dns_record" { url = "https://dns.hetzner.com/api/v1/records" method = "POST" request_headers = { "Auth-API-Token" = var.hetzner_dns_token "Content-Type" = "application/json" } request_body = jsonencode({ zone_id = var.hetzner_zone_id type = "A" name = "rancher" value = hcloud_server.master.ipv4_address ttl = 3600 }) }