Skip to content

Commit 49453c7

Browse files
fix lint
1 parent bc3c6c8 commit 49453c7

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

3-networks-dual-svpc/modules/base_env/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ module "restricted_shared_vpc" {
171171

172172
project_id = local.restricted_project_id
173173
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
175175
environment_code = var.environment_code
176176
access_context_manager_policy_id = var.access_context_manager_policy_id
177177
restricted_services = local.restricted_services

3-networks-dual-svpc/modules/base_env/remote.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ locals {
2626
production_base_project_id = data.terraform_remote_state.org.outputs.shared_vpc_projects["production"].base_shared_vpc_project_id
2727
}
2828

29-
3029
data "terraform_remote_state" "bootstrap" {
3130
backend = "gcs"
3231

3-networks-dual-svpc/modules/restricted_shared_vpc/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
| nat\_num\_addresses\_region2 | Number of external IPs to reserve for region 2 Cloud NAT. | `number` | `2` | no |
2727
| private\_service\_cidr | CIDR range for private service networking. Used for Cloud SQL and other managed services. | `string` | `null` | no |
2828
| 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 |
2930
| project\_id | Project ID for Restricted Shared VPC. | `string` | n/a | yes |
3031
| project\_number | Project number for Restricted Shared VPC. It is the project INSIDE the regular service perimeter. | `number` | n/a | yes |
3132
| restricted\_dns\_project\_id | Project ID for DNS Restricted Shared. | `string` | `""` | no |

3-networks-dual-svpc/modules/restricted_shared_vpc/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ variable "restricted_dns_project_id" {
2020
default = ""
2121
}
2222

23+
variable "production_project_id" {
24+
description = "Project ID for Restricted Shared."
25+
type = string
26+
default = ""
27+
}
28+
2329
variable "target_name_server_addresses" {
2430
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."
2531
type = list(map(any))

3-networks-hub-and-spoke/modules/restricted_shared_vpc/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ locals {
2020
network_name = "vpc-${local.vpc_name}"
2121
restricted_googleapis_cidr = module.private_service_connect.private_service_connect_ip
2222
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 }]
2424
}
2525

2626
/******************************************

0 commit comments

Comments
 (0)