lb-http

GoogleCloudPlatform/lb-http/google

Terraform Module HCL GOOGLE ✓ Verified

Creates a global HTTP load balancer for Compute Engine by using forwarding rules

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

Global HTTP Load Balancer Terraform Module Modular Global HTTP Load Balancer for GCE using forwarding rules. - If you would like to allow for backend groups to be managed outside Terraform, such as via GKE services, see the dynamic backends submodule. - If you would like to use load balancing with serverless backends (Cloud Run, Cloud Functions or App Engine), see the serverless_negs submodule and cloudrun example. Load Balancer Types - TCP load balancer - HTTP/S load balancer - Internal load balancer Compatibility This module is meant for use with Terraform 1.3+ and tested using Terraform 1.3. If you find incompatibilities using Terraform >=1.3, 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 f

Inputs (35)
NameTypeDescriptionDefault
projectstringThe project to deploy to, if not set the default provider project is used. required
namestringName for the forwarding rule and prefix for supporting resources required
backendsmap(object({ port Map backend indices to list of backend maps. required
http_portnumberThe port for the HTTP load balancer80
create_url_mapboolSet to `false` if url_map variable is provided.true
managed_ssl_certificate_domainslist(string)Create Google-managed SSL certificates for specified domains. Requires `ssl` to []
labelsmap(string)The labels to attach to resources created by this module{}
enable_ipv6boolEnable IPv6 address on the CDN load-balancerfalse
create_ipv6_addressboolAllocate a new IPv6 address. Conflicts with "ipv6_address" - if both specified, false
ipv6_addressstringAn existing IPv6 address to use (the actual IP address value)null
url_mapstringThe url_map resource to use. Default is to send all traffic to first backend.null
certificatestringContent of the SSL certificate. Requires `ssl` to be set to `true` and `create_snull
ssl_policystringSelfink to SSL Policynull
https_redirectboolSet to `true` to enable https redirect on the lb.false
load_balancing_schemestringLoad balancing scheme type (EXTERNAL for classic external load balancer, EXTERNA"EXTERNAL"
create_addressboolCreate a new global IPv4 addresstrue
firewall_projectslist(string)Names of the projects to create firewall rules in[ "default" ]
target_tagslist(string)List of target tags for health check firewall rule. Exactly one of target_tags o[]
addressstringExisting IPv4 address to use (the actual IP address value)null
certificate_mapstringCertificate Map ID in format projects/{project}/locations/global/certificateMapsnull
quicboolSpecifies the QUIC override policy for this resource. Set true to enable HTTP/3 null
networkstringNetwork for INTERNAL_SELF_MANAGED load balancing scheme"default"
https_portnumberThe port for the HTTPS load balancer443
Outputs (8)
ssl_certificate_created — The SSL certificate create from key/pem
backend_services — The backend service resources.
external_ip — The external IPv4 assigned to the global fowarding rule.
external_ipv6_address — The external IPv6 assigned to the global fowarding rule.
ipv6_enabled — Whether IPv6 configuration is enabled on this load-balancer
http_proxy — The HTTP proxy used by this module.
https_proxy — The HTTPS proxy used by this module.
url_map — The default URL map used by this module.
Resources (11)
google_compute_backend_servicegoogle_compute_firewallgoogle_compute_global_addressgoogle_compute_global_forwarding_rulegoogle_compute_health_checkgoogle_compute_managed_ssl_certificategoogle_compute_ssl_certificategoogle_compute_target_http_proxygoogle_compute_target_https_proxygoogle_compute_url_maprandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version14.2.0
Cloud GOOGLE
★ Stars351
Forks398
Total downloads9.5M
Inputs35
Outputs8
Resources11
Examples21
Submodules4
LicenseApache-2.0
NamespaceGoogleCloudPlatform
Updated