lb-http
GoogleCloudPlatform/lb-http/google
Creates a global HTTP load balancer for Compute Engine by using forwarding rules
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
| Name | Type | Description | Default |
|---|---|---|---|
| project | string | The project to deploy to, if not set the default provider project is used. | required |
| name | string | Name for the forwarding rule and prefix for supporting resources | required |
| backends | map(object({ port | Map backend indices to list of backend maps. | required |
| http_port | number | The port for the HTTP load balancer | 80 |
| create_url_map | bool | Set to `false` if url_map variable is provided. | true |
| managed_ssl_certificate_domains | list(string) | Create Google-managed SSL certificates for specified domains. Requires `ssl` to | [] |
| labels | map(string) | The labels to attach to resources created by this module | {} |
| enable_ipv6 | bool | Enable IPv6 address on the CDN load-balancer | false |
| create_ipv6_address | bool | Allocate a new IPv6 address. Conflicts with "ipv6_address" - if both specified, | false |
| ipv6_address | string | An existing IPv6 address to use (the actual IP address value) | null |
| url_map | string | The url_map resource to use. Default is to send all traffic to first backend. | null |
| certificate | string | Content of the SSL certificate. Requires `ssl` to be set to `true` and `create_s | null |
| ssl_policy | string | Selfink to SSL Policy | null |
| https_redirect | bool | Set to `true` to enable https redirect on the lb. | false |
| load_balancing_scheme | string | Load balancing scheme type (EXTERNAL for classic external load balancer, EXTERNA | "EXTERNAL" |
| create_address | bool | Create a new global IPv4 address | true |
| firewall_projects | list(string) | Names of the projects to create firewall rules in | [
"default"
] |
| target_tags | list(string) | List of target tags for health check firewall rule. Exactly one of target_tags o | [] |
| address | string | Existing IPv4 address to use (the actual IP address value) | null |
| certificate_map | string | Certificate Map ID in format projects/{project}/locations/global/certificateMaps | null |
| quic | bool | Specifies the QUIC override policy for this resource. Set true to enable HTTP/3 | null |
| network | string | Network for INTERNAL_SELF_MANAGED load balancing scheme | "default" |
| https_port | number | The port for the HTTPS load balancer | 443 |
ssl_certificate_created — The SSL certificate create from key/pembackend_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-balancerhttp_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.