Bswenka/psc glb and armor subnet fix (#2058)
* Updated ilb-subnetwork issue * Fixed Terraform formatting issue * Fixing merge issue * Fixing merge issue in producer.tf * Fixed linting issues --------- Co-authored-by: Julio Castillo <jccb@google.com>
This commit is contained in:
parent
597579fa2b
commit
89779c0d0e
|
@ -123,5 +123,5 @@ module "psc-glb-and-armor-test" {
|
||||||
consumer_project_id = "project-1"
|
consumer_project_id = "project-1"
|
||||||
producer_project_id = "project-2"
|
producer_project_id = "project-2"
|
||||||
}
|
}
|
||||||
# tftest modules=3 resources=31
|
# tftest modules=3 resources=32
|
||||||
```
|
```
|
||||||
|
|
|
@ -74,7 +74,7 @@ resource "google_compute_forwarding_rule" "psc_ilb_target_service" {
|
||||||
name = "producer-forwarding-rule"
|
name = "producer-forwarding-rule"
|
||||||
region = var.region
|
region = var.region
|
||||||
project = module.producer_project.project_id
|
project = module.producer_project.project_id
|
||||||
|
depends_on = [google_compute_subnetwork.proxy_subnet]
|
||||||
load_balancing_scheme = "INTERNAL_MANAGED"
|
load_balancing_scheme = "INTERNAL_MANAGED"
|
||||||
port_range = "443"
|
port_range = "443"
|
||||||
allow_global_access = true
|
allow_global_access = true
|
||||||
|
@ -156,11 +156,21 @@ resource "google_compute_subnetwork" "ilb_subnetwork" {
|
||||||
project = module.producer_project.project_id
|
project = module.producer_project.project_id
|
||||||
|
|
||||||
network = google_compute_network.psc_ilb_network.id
|
network = google_compute_network.psc_ilb_network.id
|
||||||
ip_cidr_range = "10.0.0.0/16"
|
ip_cidr_range = "10.0.0.0/24"
|
||||||
purpose = "INTERNAL_HTTPS_LOAD_BALANCER"
|
|
||||||
role = "ACTIVE"
|
role = "ACTIVE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "google_compute_subnetwork" "proxy_subnet" {
|
||||||
|
name = "l7-ilb-proxy-subnet"
|
||||||
|
provider = google-beta
|
||||||
|
ip_cidr_range = "10.0.1.0/24"
|
||||||
|
region = var.region
|
||||||
|
project = module.producer_project.project_id
|
||||||
|
purpose = "REGIONAL_MANAGED_PROXY"
|
||||||
|
role = "ACTIVE"
|
||||||
|
network = google_compute_network.psc_ilb_network.id
|
||||||
|
}
|
||||||
|
|
||||||
resource "google_compute_subnetwork" "psc_private_subnetwork" {
|
resource "google_compute_subnetwork" "psc_private_subnetwork" {
|
||||||
name = "psc-private-subnetwork"
|
name = "psc-private-subnetwork"
|
||||||
region = var.region
|
region = var.region
|
||||||
|
|
Loading…
Reference in New Issue