routing_policy change introduced in v5.2.0 does not looks like working and it's throwing error. It's also not compatible with previous versions..
module "dns" {
source = "terraform-google-modules/cloud-dns/google"
project_id = "xxx"
type = "private"
name = "dbs.local"
domain = "dbs.local."
description = "dbs records"
private_visibility_config_networks = [
"https://www.googleapis.com/compute/v1/projects/xxx/global/networks/vpc-yyyy"
]
recordsets = [
{
name = "dbs"
type = "A"
ttl = 300
records = ["172.16.10.10"]
}
]
}
on .terraform/modules/dns/main.tf line 194, in resource "google_dns_record_set" "cloud-static-records":
│ 194: resource "google_dns_record_set" "cloud-static-records" {
│
│ "routing_policy": only one of `routing_policy,rrdatas` can be specified, but `routing_policy,rrdatas` were specified.
╵
expected to create record set with rrdatas and not to have any issues because of those routing_policy change in v5.2.0
╷
│ Error: Invalid combination of arguments
│
│ with module.dns.google_dns_record_set.cloud-static-records["dbs/A"],
│ on .terraform/modules/dns/main.tf line 194, in resource "google_dns_record_set" "cloud-static-records":
│ 194: resource "google_dns_record_set" "cloud-static-records" {
│
│ "routing_policy": only one of `routing_policy,rrdatas` can be specified, but `routing_policy,rrdatas` were specified.
╵
╷
│ Error: Invalid combination of arguments
│
│ with module.dns.google_dns_record_set.cloud-static-records["dbs/A"],
│ on .terraform/modules/dns/main.tf line 207, in resource "google_dns_record_set" "cloud-static-records":
│ 207: rrdatas = each.value.records
│
│ "rrdatas": only one of `routing_policy,rrdatas` can be specified, but `routing_policy,rrdatas` were specified.
╵