WARNING: The UltraDNS API will try to "help" you by placing the ending "." on the name. This will cause Terraform to think there are changes every time you plan or apply.
PowerDNS:
locals {
sorted_pdns_hostnames = "${sort(module.server.hostnames)}"
records = "${formatlist("10 10 80 %s.${var.vpc}.${var.region}.private.", local.sorted_pdns_hostnames)}"
}
resource "powerdns_record" "pool" {
zone = "${var.pdns_zone}"
name = "${var.pdns_name}"
type = "SRV"
ttl = 300
records = ["${local.records}"]
}
WARNING: The UltraDNS API will try to "help" you by placing the ending "." on the name. This will cause Terraform to think there are changes every time you plan or apply.
PowerDNS:
UltraDNS: