lb
GoogleCloudPlatform/lb/google
Creates a regional TCP proxy load balancer for Compute Engine by using target pools and forwarding rules
Regional TCP Load Balancer Terraform Module This is a collection of modules for external TCP/UDP load balancers. The root module is an implementation of passthrough regional TCP Load Balancer for GCE using target pool and forwarding rule. A regional proxy based external load balancer is implemented as a submodlue[modules/regional_proxy_lb/]. Load Balancer Types TCP load balancer HTTP/S load balancer Internal load balancer Compatibility This module is meant for use with Terraform 0.13+ and tested using Terraform 1.0+. If you find incompatibilities using Terraform >=0.13, please open an issue. If you haven't upgraded and need a Terraform 0.12.x-compatible version of this module, the last released version intended for Terraform 0.12.x is v2.3.0. Usage Basic usage is as follows: ``hcl module "
| Name | Type | Description | Default |
|---|---|---|---|
| region | string | Region used for GCP resources. | required |
| name | string | Name for the forwarding rule and prefix for supporting resources. | required |
| service_port | number | TCP port your service is listening on. | required |
| project | string | The project to deploy to, if not set the default provider project is used. | "" |
| ip_address | string | IP address of the external load balancer, if empty one will be assigned. | null |
| network | string | Name of the network to create resources in. | "default" |
| session_affinity | string | How to distribute load. Options are `NONE`, `CLIENT_IP` and `CLIENT_IP_PROTO` | "NONE" |
| disable_health_check | bool | Disables the health check on the target pool. | false |
| health_check | object({ check_interval_se | Health check to determine whether instances are responsive and able to do work | {
"check_interval_sec": null,
"healt |
| ip_protocol | string | The IP protocol for the frontend forwarding rule and firewall rule. TCP, UDP, ES | "TCP" |
| firewall_project | string | Name of the project to create the firewall rule in. Useful for shared VPC. Defau | "" |
| target_tags | list(string) | List of target tags to allow traffic using firewall rule. | null |
| target_service_accounts | list(string) | List of target service accounts to allow traffic using firewall rule. | null |
| allowed_ips | list(string) | The IP address ranges which can access the load balancer. | [
"0.0.0.0/0"
] |
| labels | map(string) | The labels to attach to resources created by this module. | {} |
target_pool — The `self_link` to the target pool resource created.external_ip — The external ip address of the forwarding rule.