Skip to content

Commit

Permalink
Fixed issue with service networking DNS peering
Browse files Browse the repository at this point in the history
  • Loading branch information
apichick committed Apr 28, 2024
1 parent a95e681 commit edd9688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/net-vpc/psa.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions tests/modules/net_vpc/examples/psa-routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ values:
- servicenetworking-googleapis-com-myrange
service: servicenetworking.googleapis.com
timeouts: null
module.vpc.google_service_networking_peered_dns_domain.name["servicenetworking-googleapis-com-gcp-example-com-"]:
module.vpc.google_service_networking_peered_dns_domain.name["servicenetworking-googleapis-com-gcp-example-com"]:
dns_suffix: gcp.example.com.
name: servicenetworking-googleapis-com-gcp-example-com-
name: servicenetworking-googleapis-com-gcp-example-com
network: my-network
project: project-id
service: servicenetworking.googleapis.com
Expand Down

0 comments on commit edd9688

Please sign in to comment.