implement Andrea's suggestions
This commit is contained in:
parent
813ea55d0d
commit
a6f351d9ef
|
@ -21,7 +21,7 @@ curl https://YOUR_REGION-YOUR_PROJECT_ID.cloudfunctions.net/YOUR_FUNCTION_NAME
|
|||
|---|---|:---: |:---:|:---:|
|
||||
| project_id | Project id. | <code title="">string</code> | ✓ | |
|
||||
| *ip_ranges* | IP ranges used for the VPCs. | <code title="object({ onprem = string hub = string })">object({...})</code> | | <code title="{ onprem = "10.0.1.0/24", hub = "10.0.2.0/24" }">...</code> |
|
||||
| *name* | Name used for new resources. | <code title="">string</code> | | <code title="">psc-onprem</code> |
|
||||
| *name* | Name used for new resources. | <code title="">string</code> | | <code title="">cf-via-psc</code> |
|
||||
| *project_create* | If non null, creates project instead of using an existing one. | <code title="object({ billing_account_id = string parent = string })">object({...})</code> | | <code title="">null</code> |
|
||||
| *psc_endpoint* | IP used for the Private Service Connect endpoint, it must not overlap with the hub_ip_range. | <code title="">string</code> | | <code title="">172.16.32.1</code> |
|
||||
| *region* | Region where the resources will be created. | <code title="">string</code> | | <code title="">europe-west1</code> |
|
||||
|
|
|
@ -52,6 +52,9 @@ module "vpc-onprem" {
|
|||
secondary_ip_range = {}
|
||||
}
|
||||
]
|
||||
subnet_private_access = {
|
||||
"${var.region}/${var.name}-onprem" = false
|
||||
}
|
||||
}
|
||||
|
||||
module "firewall-onprem" {
|
||||
|
|
|
@ -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" {
|
||||
|
|
Loading…
Reference in New Issue