Skip to content

Commit 1a7f71c

Browse files
committed
Added private_service_cidrs output for Private services access.
1 parent f07cb42 commit 1a7f71c

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.3.15 (Dec 02, 2025)
2+
* Added `private_service_cidrs` output for Private services access.
3+
14
# 0.3.14 (Oct 22, 2025)
25
* Restore service networking identiy creation.
36

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,8 @@ output "vpc_access_connector" {
6262
value = try(google_vpc_access_connector.serverless[0].name, "")
6363
description = "string ||| The name of the VPC Access Connector that should be used by serverless to access the private subnetworks."
6464
}
65+
66+
output "private_service_cidrs" {
67+
value = [local.private_service_cidr]
68+
description = "list(string) ||| The CIDR range for accessing google-managed services over Private services access."
69+
}

service-networking.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ resource "google_compute_global_address" "gcp_private" {
4444
network = google_compute_network.this.id
4545
}
4646

47+
locals {
48+
private_service_cidr = "${google_compute_global_address.gcp_private.address}/${google_compute_global_address.gcp_private.prefix_length}"
49+
}
50+
4751
// There are 2 outstanding issue related to destroying this resource
4852
// - https://github.com/hashicorp/terraform-provider-google/issues/19908
4953
// - https://github.com/hashicorp/terraform-provider-google/issues/18834

0 commit comments

Comments
 (0)