Modular Internal Load Balancer for GCE using forwarding rules.
This module is meant for use with Terraform 0.12. If you haven't upgraded and need a Terraform 0.11.x-compatible version of this module, the last released version intended for Terraform 0.11.x is 1.0.4.
The current version is 2.X. The following guides are available to assist with upgrades:
module "gce-ilb" {
source = "terraform-google-modules/lb-internal/google"
version = "~> 2.0"
region = var.region
name = "group2-ilb"
ports = ["80"]
health_check = var.health_check
source_tags = ["allow-group1"]
target_tags = ["allow-group2", "allow-group3"]
backends = [
{ group = module.mig2.instance_group, description = "" },
{ group = module.mig3.instance_group, description = "" },
]
}google_compute_forwarding_rule.default: The internal regional forwarding rule.google_compute_region_backend_service.default: The backend service registered to the giveninstance_group.google_compute_health_check.default: The TCP health check for theinstance_grouptargets on theservice_port.google_compute_firewall.default-ilb-fw: Firewall rule that allows traffic from thesource_tagsresources totarget_tagson theservice_port.google_compute_firewall.default-hc: Firewall rule that allows traffic for health checks to thetarget_tagsresources.