Fixed issue with service networking DNS peering (#2246)

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
This commit is contained in:
apichick
2024-04-28 22:18:02 +02:00
committed by GitHub
parent ab174274de
commit be966c4f32
2 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ locals {
_psa_peered_domains = flatten([
for config in local.psa_configs : [
for v in config.peered_domains : {
key = "${config.key}-${replace(v, ".", "-")}"
key = "${config.key}-${trimsuffix(replace(v, ".", "-"), "-")}"
dns_suffix = v
service_producer = config.service_producer
}