This module creates following resources.
aws_lb_listener
aws_lb_listener_certificate
(optional)
Name |
Source |
Version |
resource_group |
tedilabs/misc/aws//modules/resource-group |
~> 0.10.0 |
Name |
Description |
Type |
Default |
Required |
load_balancer |
(Required) The ARN of the network load balancer to add the listener. |
string |
n/a |
yes |
port |
(Required) The number of port on which the listener of load balancer is listening. |
number |
n/a |
yes |
protocol |
(Required) The protocol for connections from clients to the load balancer. Valid values are TCP , TLS , UDP and TCP_UDP . Not valid to use UDP or TCP_UDP if dual-stack mode is enabled on the load balancer. |
string |
n/a |
yes |
target_group |
(Required) The ARN of the target group to which to route traffic. |
string |
n/a |
yes |
module_tags_enabled |
(Optional) Whether to create AWS Resource Tags for the module informations. |
bool |
true |
no |
resource_group_description |
(Optional) The description of Resource Group. |
string |
"Managed by Terraform." |
no |
resource_group_enabled |
(Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. |
bool |
true |
no |
resource_group_name |
(Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws . |
string |
"" |
no |
tags |
(Optional) A map of tags to add to all resources. |
map(string) |
{} |
no |
tls |
(Optional) The configuration for TLS listener of the load balancer. Required if protocol is TLS . tls block as defined below. (Optional) certificate - The ARN of the default SSL server certificate. For adding additional SSL certificates, see the additional_certificates variable. (Optional) additional_certificates - A set of ARNs of the certificate to attach to the listener. This is for additional certificates and does not replace the default certificate on the listener. (Optional) security_policy - The name of security policy for a Secure Socket Layer (SSL) negotiation configuration. This is used to negotiate SSL connections with clients. Required if protocol is TLS . Recommend using the ELBSecurityPolicy-TLS13-1-2-2021-06 security policy. This security policy includes TLS 1.3, which is optimized for security and performance, and is backward compatible with TLS 1.2. (Optional) alpn_policy - The policy of the Application-Layer Protocol Negotiation (ALPN) to select. ALPN is a TLS extension that includes the protocol negotiation within the exchange of hello messages. Can be set if protocol is TLS . Valid values are HTTP1Only , HTTP2Only , HTTP2Optional , HTTP2Preferred , and None . Defaults to None . |
object({ certificate = optional(string) additional_certificates = optional(set(string), []) security_policy = optional(string, "ELBSecurityPolicy-TLS13-1-2-2021-06") alpn_policy = optional(string, "None") }) |
{} |
no |
Name |
Description |
arn |
The Amazon Resource Name (ARN) of the listener. |
default_action |
The default action for traffic on this listener. |
id |
The ID of the listener. |
name |
The name of the listener. |
port |
The port number on which the listener of load balancer is listening. |
protocol |
The protocol for connections of the listener. |
tls |
TLS configurations of the listener. |