File tree Expand file tree Collapse file tree 5 files changed +9
-3
lines changed
3-networks-dual-svpc/modules
3-networks-hub-and-spoke/modules/restricted_shared_vpc Expand file tree Collapse file tree 5 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ module "restricted_shared_vpc" {
171
171
172
172
project_id = local. restricted_project_id
173
173
project_number = local. restricted_project_number
174
- production_restricted_project_id = local. production_restricted_project_id
174
+ production_project_id = local. production_restricted_project_id
175
175
environment_code = var. environment_code
176
176
access_context_manager_policy_id = var. access_context_manager_policy_id
177
177
restricted_services = local. restricted_services
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ locals {
26
26
production_base_project_id = data. terraform_remote_state . org . outputs . shared_vpc_projects [" production" ]. base_shared_vpc_project_id
27
27
}
28
28
29
-
30
29
data "terraform_remote_state" "bootstrap" {
31
30
backend = " gcs"
32
31
Original file line number Diff line number Diff line change 26
26
| nat\_ num\_ addresses\_ region2 | Number of external IPs to reserve for region 2 Cloud NAT. | ` number ` | ` 2 ` | no |
27
27
| private\_ service\_ cidr | CIDR range for private service networking. Used for Cloud SQL and other managed services. | ` string ` | ` null ` | no |
28
28
| private\_ service\_ connect\_ ip | Internal IP to be used as the private service connect endpoint. | ` string ` | n/a | yes |
29
+ | production\_ project\_ id | Project ID for Restricted Shared. | ` string ` | ` "" ` | no |
29
30
| project\_ id | Project ID for Restricted Shared VPC. | ` string ` | n/a | yes |
30
31
| project\_ number | Project number for Restricted Shared VPC. It is the project INSIDE the regular service perimeter. | ` number ` | n/a | yes |
31
32
| restricted\_ dns\_ project\_ id | Project ID for DNS Restricted Shared. | ` string ` | ` "" ` | no |
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ variable "restricted_dns_project_id" {
20
20
default = " "
21
21
}
22
22
23
+ variable "production_project_id" {
24
+ description = " Project ID for Restricted Shared."
25
+ type = string
26
+ default = " "
27
+ }
28
+
23
29
variable "target_name_server_addresses" {
24
30
description = " List of IPv4 address of target name servers for the forwarding zone configuration. See https://cloud.google.com/dns/docs/overview#dns-forwarding-zones for details on target name servers in the context of Cloud DNS forwarding zones."
25
31
type = list (map (any ))
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ locals {
20
20
network_name = " vpc-${ local . vpc_name } "
21
21
restricted_googleapis_cidr = module. private_service_connect . private_service_connect_ip
22
22
google_forward_source_range = " 35.199.192.0/19"
23
- advertised_ip = var. environment_code == " p" ? [{ range = local.google_forward_source_range }, { range = local.restricted_googleapis_cidr }] : [{ range = local.restricted_googleapis_cidr}]
23
+ advertised_ip = var. environment_code == " p" ? [{ range = local.google_forward_source_range }, { range = local.restricted_googleapis_cidr }] : [{ range = local.restricted_googleapis_cidr }]
24
24
}
25
25
26
26
/* *****************************************
You can’t perform that action at this time.
0 commit comments