correcting wrong variables for L7 LB

parent b8d1143e
......@@ -175,7 +175,7 @@ module "performance-lb" {
subnetwork_name = "${module.log-proxy.google_compute_subnetwork_name}"
environment = "${var.environment}"
source = "../../modules/google/monitoring-lb"
name = "monitoring-lb"
name = "performance-lb"
gitlab_net_zone_id = "${var.gitlab_net_zone_id}"
project = "${var.project}"
region = "${var.region}"
......@@ -188,8 +188,8 @@ module "performance-lb" {
# ###########################################################
resource "google_compute_url_map" "performance" {
name = "${format("log-%v", var.environment)}"
default_service = "${module.log-proxy.google_compute_backend_service_iap_self_link}"
name = "${format("performance-%v", var.environment)}"
default_service = "${module.performance.google_compute_backend_service_iap_self_link}"
host_rule {
hosts = ["performance.gitlab.net"]
......@@ -198,11 +198,11 @@ resource "google_compute_url_map" "performance" {
path_matcher {
name = "performance"
default_service = "${module.log-proxy.google_compute_backend_service_iap_self_link}"
default_service = "${module.performance.google_compute_backend_service_iap_self_link}"
path_rule {
paths = ["/*"]
service = "${module.log-proxy.google_compute_backend_service_iap_self_link}"
service = "${module.performance.google_compute_backend_service_iap_self_link}"
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment