/terraform-google-lb-internal

Modular Internal Load Balancer for GCE using forwarding rules.

Primary LanguageHCLApache License 2.0Apache-2.0

Internal Load Balancer Terraform Module

Modular Internal Load Balancer for GCE using forwarding rules.

Usage

module "gce-ilb" {
  source         = "GoogleCloudPlatform/lb-internal/google"
  region         = "${var.region}"
  name           = "group2-ilb"
  ports          = ["${module.mig2.service_port}"]
  health_port    = "${module.mig2.service_port}"
  source_tags    = ["${module.mig1.target_tags}"]
  target_tags    = ["${module.mig2.target_tags}","${module.mig3.target_tags}"]
  backends       = [
    { group = "${module.mig2.instance_group}" },
    { group = "${module.mig3.instance_group}" },
  ]
}

Resources created