Skip to content

Commit

Permalink
Support prodcuer port in network endpoint group (#11820) (terraform-g…
Browse files Browse the repository at this point in the history
…oogle-modules#863)

[upstream:4d2543ed91c3699db29fb5de387dfa900af00e68]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Nov 22, 2024
1 parent 314ec35 commit c4b8550
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions region_network_endpoint_group_psc_service_attachment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ resource "google_compute_forwarding_rule" "default" {

load_balancing_scheme = "INTERNAL"
backend_service = google_compute_region_backend_service.default.id
all_ports = true
ports = ["80", "88", "443"]
network = google_compute_network.default.name
subnetwork = google_compute_subnetwork.default.name
}
Expand All @@ -61,7 +61,9 @@ resource "google_compute_region_network_endpoint_group" "psc_neg_service_attachm

network_endpoint_type = "PRIVATE_SERVICE_CONNECT"
psc_target_service = google_compute_service_attachment.default.self_link

psc_data {
producer_port = "88"
}
network = google_compute_network.default.self_link
subnetwork = google_compute_subnetwork.default.self_link
}

0 comments on commit c4b8550

Please sign in to comment.