I naively provisioned an HTTPS record at Google CloudDNS like this via terraform:
resource "google_dns_record_set" "testv6" {
name = "testv6.some-domain.example."
managed_zone = "some-domain-example"
type = "HTTPS"
ttl = 3600
rrdatas = ["1 . alpn=\"h2\" ipv4hint=\"198.51.100.1\" ipv6hint=\"2001:DB8::1\""]
}
This results in a permanent diff because the Google CloudDNS API seems to parse the
record content, and stores the ipv6hint expanded (removing the ::
notation) and in all
lowercase as 2001:db8:0:0:0:0:0:1
. Thus to fix the permanent diff we've to use it like
this:
resource "google_dns_record_set" "testv6" {
name = "testv6.some-domain.example."
managed_zone = "some-domain-example"
type = "HTTPS"
ttl = 3600
rrdatas = ["1 . alpn=\"h2\" ipv4hint=\"198.51.100.1\" ipv6hint=\"2001:db8:0:0:0:0:0:1\""]
}
Guess I should be glad that they already support HTTPS records natively, and not bicker too much about the implementation details.