lb

GoogleCloudPlatform/lb/google

Terraform Module HCL GOOGLE ✓ Verified

Creates a regional TCP proxy load balancer for Compute Engine by using target pools and forwarding rules

Install
module "lb" {
source = "GoogleCloudPlatform/lb/google"
version = "5.1.0"
}
plain text: /constructs/tfmod-googlecloudplatform-lb-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

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 "

Inputs (15)
NameTypeDescriptionDefault
regionstringRegion used for GCP resources. required
namestringName for the forwarding rule and prefix for supporting resources. required
service_portnumberTCP port your service is listening on. required
projectstringThe project to deploy to, if not set the default provider project is used.""
ip_addressstringIP address of the external load balancer, if empty one will be assigned.null
networkstringName of the network to create resources in."default"
session_affinitystringHow to distribute load. Options are `NONE`, `CLIENT_IP` and `CLIENT_IP_PROTO`"NONE"
disable_health_checkboolDisables the health check on the target pool.false
health_checkobject({ check_interval_seHealth check to determine whether instances are responsive and able to do work{ "check_interval_sec": null, "healt
ip_protocolstringThe IP protocol for the frontend forwarding rule and firewall rule. TCP, UDP, ES"TCP"
firewall_projectstringName of the project to create the firewall rule in. Useful for shared VPC. Defau""
target_tagslist(string)List of target tags to allow traffic using firewall rule.null
target_service_accountslist(string)List of target service accounts to allow traffic using firewall rule.null
allowed_ipslist(string)The IP address ranges which can access the load balancer.[ "0.0.0.0/0" ]
labelsmap(string)The labels to attach to resources created by this module.{}
Outputs (2)
target_pool — The `self_link` to the target pool resource created.
external_ip — The external ip address of the forwarding rule.
Resources (4)
google_compute_firewallgoogle_compute_forwarding_rulegoogle_compute_http_health_checkgoogle_compute_target_pool
Details
FrameworkTerraform Module
LanguageHCL
Version5.1.0
Cloud GOOGLE
★ Stars111
Forks84
Total downloads95.0k
Inputs15
Outputs2
Resources4
Examples2
Submodules1
LicenseApache-2.0
NamespaceGoogleCloudPlatform
Updated