You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creates and manages Scaleway Load-Balancer Routes. For more information, see [the documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-route).
9
-
It is useful to manage the Service Name Indicator (SNI) for a route between a frontend and a backend.
8
+
Creates and manages Scaleway Load-Balancer Routes.
9
+
For more information, see [the documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-route).
### With host-header for direction to HTTP backends
45
45
46
46
```hcl
47
47
resource "scaleway_lb_ip" "ip01" {}
@@ -54,7 +54,7 @@ resource "scaleway_lb" "lb01" {
54
54
55
55
resource "scaleway_lb_backend" "bkd01" {
56
56
lb_id = scaleway_lb.lb01.id
57
-
forward_protocol = "tcp"
57
+
forward_protocol = "http"
58
58
forward_port = 80
59
59
proxy_protocol = "none"
60
60
}
@@ -78,10 +78,16 @@ The following arguments are supported:
78
78
79
79
-`backend_id` - (Required) The ID of the backend to which the route is associated.
80
80
-`frontend_id` - (Required) The ID of the frontend to which the route is associated.
81
-
-`match_sni` - The Server Name Indication TLS extension field from an incoming connection made via an SSL/TLS transport layer.
81
+
-`match_sni` - The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer.
82
82
Only one of `match_sni` and `match_host_header` should be specified.
83
-
-`match_host_header` - The Host request header specifies the host of the server to which the request is being sent.
83
+
84
+
~> **Important:** This field should be set for routes on TCP Load Balancers.
85
+
86
+
-`match_host_header` - The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection.
84
87
Only one of `match_sni` and `match_host_header` should be specified.
88
+
89
+
~> **Important:** This field should be set for routes on HTTP Load Balancers.
90
+
85
91
-`zone` - (Defaults to [provider](../index.md#zone)`zone`) The [zone](../guides/regions_and_zones.md#zones) in which the load-balancer was created.
0 commit comments