diff --git a/networking/private-cloud-function-from-onprem/README.md b/networking/private-cloud-function-from-onprem/README.md index cd581a52..43f58f0c 100644 --- a/networking/private-cloud-function-from-onprem/README.md +++ b/networking/private-cloud-function-from-onprem/README.md @@ -21,7 +21,7 @@ curl https://YOUR_REGION-YOUR_PROJECT_ID.cloudfunctions.net/YOUR_FUNCTION_NAME |---|---|:---: |:---:|:---:| | project_id | Project id. | string | ✓ | | | *ip_ranges* | IP ranges used for the VPCs. | object({...}) | | ... | -| *name* | Name used for new resources. | string | | psc-onprem | +| *name* | Name used for new resources. | string | | cf-via-psc | | *project_create* | If non null, creates project instead of using an existing one. | object({...}) | | null | | *psc_endpoint* | IP used for the Private Service Connect endpoint, it must not overlap with the hub_ip_range. | string | | 172.16.32.1 | | *region* | Region where the resources will be created. | string | | europe-west1 | diff --git a/networking/private-cloud-function-from-onprem/main.tf b/networking/private-cloud-function-from-onprem/main.tf index 95954036..dc4cb2f3 100644 --- a/networking/private-cloud-function-from-onprem/main.tf +++ b/networking/private-cloud-function-from-onprem/main.tf @@ -52,6 +52,9 @@ module "vpc-onprem" { secondary_ip_range = {} } ] + subnet_private_access = { + "${var.region}/${var.name}-onprem" = false + } } module "firewall-onprem" { diff --git a/networking/private-cloud-function-from-onprem/variables.tf b/networking/private-cloud-function-from-onprem/variables.tf index ab5116ff..70355e17 100644 --- a/networking/private-cloud-function-from-onprem/variables.tf +++ b/networking/private-cloud-function-from-onprem/variables.tf @@ -29,7 +29,7 @@ variable "ip_ranges" { variable "name" { description = "Name used for new resources." type = string - default = "psc-onprem" + default = "cf-via-psc" } variable "project_create" {