scaleway/terraform-scaleway-lb-module
HCL
Captured source
source ↗scaleway/terraform-scaleway-lb-module
Language: HCL
License: Apache-2.0
Stars: 1
Forks: 2
Open issues: 0
Created: 2023-05-11T09:19:11Z
Pushed: 2023-07-04T09:38:39Z
Default branch: main
Fork: no
Archived: no
README:
Scaleway Load Balancer Terraform module
Terraform module that can be used to deploy Load Balancer resources on Scaleway. Common deployment examples can be found in [examples/](./examples).
Usage
The example below provision a basic Load Balancer.
module "lb" {
source = "scaleway/lb-module/scaleway"
zone = local.zone
name = local.name
tags = local.tags
create_acls = true
create_routes = true
load_balancer_action_rules = local.load_balancer_action_rules
load_balancer_route_host_header = local.load_balancer_route_host_header
}Requirements
| Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 0.13 | | [scaleway](#requirement\_scaleway) | >= 2.20 |
Providers
| Name | Version | |------|---------| | [scaleway](#provider\_scaleway) | 2.21.0 |
Modules
No modules.
Resources
| Name | Type | |------|------| | scaleway_lb.main | resource | | scaleway_lb_acl.acls | resource | | scaleway_lb_backend.backend | resource | | scaleway_lb_frontend.frontend | resource | | scaleway_lb_ip.main | resource | | scaleway_lb_route.route | resource |
Inputs
| Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [backend\_failover\_host](#input\_backend\_failover\_host) | Scaleway S3 bucket website to be served in case all backend servers are down | string | null | no | | [backend\_forward\_port](#input\_backend\_forward\_port) | Port to be used on load balancer backend resource as forward port | number | 80 | no | | [backend\_forward\_protocol](#input\_backend\_forward\_protocol) | Protocol to be used on load balancer backend resource | string | "tcp" | no | | [backend\_health\_check\_delay](#input\_backend\_health\_check\_delay) | Define maximum health check | string | "1m0s" | no | | [backend\_health\_check\_max\_retries](#input\_backend\_health\_check\_max\_retries) | Number of allowed failed HC requests before the backend server is marked down | number | 2 | no | | [backend\_health\_check\_port](#input\_backend\_health\_check\_port) | The port to use when connecting to a backend server to forward a user session | number | 80 | no | | [backend\_ignore\_ssl\_server\_verify](#input\_backend\_ignore\_ssl\_server\_verify) | Specifies whether the Load Balancer should check the backend server’s certificate before initiating a connection | bool | false | no | | [backend\_ip\_addresses](#input\_backend\_ip\_addresses) | Backend server IP addresses list (IPv4 or IPv6) | list(string) | [] | no | | [backend\_marked\_down\_action](#input\_backend\_marked\_down\_action) | Modify what occurs when a backend server is marked down | string | "none" | no | | [backend\_name](#input\_backend\_name) | The backend name of the load balancer. | string | null | no | | [backend\_port\_algorithm](#input\_backend\_port\_algorithm) | Load balancing algorithm | string | "roundrobin" | no | | [backend\_proxy\_protocol](#input\_backend\_proxy\_protocol) | Type of PROXY protocol to enable | string | "none" | no | | [backend\_ssl\_bridging](#input\_backend\_ssl\_bridging) | Enables SSL between load balancer and backend servers | bool | false | no | | [backend\_sticky\_sessions](#input\_backend\_sticky\_sessions) | The type of sticky session | string | null | no | | [backend\_sticky\_sessions\_cookie\_name](#input\_backend\_sticky\_sessions\_cookie\_name) | Cookie name for for sticky sessions | string | null | no | | [backend\_timeout\_connect](#input\_backend\_timeout\_connect) | Define maximum timeout for server | string | "2.5s" | no | | [backend\_timeout\_health\_check](#input\_backend\_timeout\_health\_check) | Define maximum health check | string | "30s" | no | | [backend\_timeout\_server](#input\_backend\_timeout\_server) | Define maximum timeout for server | string | "1s" | no | | [backend\_timeout\_tunnel](#input\_backend\_timeout\_tunnel) | Define maximum timeout for tunnel | string | "3s" | no | | [certificate\_ids](#input\_certificate\_ids) | Certificate IDs list | list(string) | null | no | | [create\_acls](#input\_create\_acls) | Controls if the Load Balancer ACl Rules should be created | bool | true | no | | [create\_routes](#input\_create\_routes) | Determines if route should be created | bool | false | no | | [description](#input\_description) | Define a description for the Load balancer | string | null | no | | [frontend\_inbound\_port](#input\_frontend\_inbound\_port) | Port to be used on load balancer frontend resource as inbound port | number | 443 | no | | [frontend\_name](#input\_frontend\_name) | Name to be used on load balancer frontend resource as identifier | string | "" | no | | [frontend\_timeout\_client](#input\_frontend\_timeout\_client) | Defines maximum allowed inactivity time on the client side | string | "30s" | no | | [load\_balancer\_action\_rules](#input\_load\_balancer\_action\_rules) | A list of maps describing the ACL Rules for this LB. Required key/values: actions, rules. (default to load\_balancer\_action\_rules[count.index]) | any | [] | no | | [load\_balancer\_backend\_health\_check\_https](#input\_load\_balancer\_backend\_health\_check\_https) | An object describing the Health check method for this LB. Required key/values: type: https. Required: uri Optional: code, sni. (default to load\_balancer\_backend\_health\_check\_https[count.index] | object({ uri = string code = number method = string host_header = string sni = string }) | null | no | | [load\_balancer\_name](#input\_load\_balancer\_name) | The resource name of the load balancer. | string | "" | no | |…
Excerpt shown — open the source for the full document.