Skip to content

LB Listener

Front-end port on an ALB or NLB that routes to a target group.

load-balancer
category
18
settings
3
inputs
1
outputs
SettingTypeRequiredDefault
PortNumberYes80
Protocol
Options: HTTP, HTTPS, TCP, TLS, UDP, TCP+UDP
ChoiceHTTP
ACM cert ARN (HTTPS/TLS)Text
SSL policy
Options: TLS 1.3 (2021), TLS 1.2 ext (2018), FS 1.2 res (2020), 2016-08 (legacy)
ChoiceELBSecurityPolicy-TLS13-1-2-2021-06
Default action
Options: Forward to target group, Redirect, Fixed response
Choiceforward
Redirect hostText#{host}
Redirect pathText/#{path}
Redirect portText443
Redirect protocol
Options: HTTPS, HTTP
ChoiceHTTPS
Redirect status
Options: 301 Permanent, 302 Found
ChoiceHTTP_302
Fixed response bodyText
Fixed response content typeTexttext/plain
Fixed response statusNumber200
ALPN policy (TLS NLB)List
Mutual TLS enabledTogglefalse
Mutual TLS mode
Options: Off, Passthrough, Verify
Choiceoff
Mutual TLS trust store ARNText
TagsKey–value
SocketDirectionAcceptsTerraform arg
Load balancerInputaws.alb, aws.nlbload_balancer_arn
Default target groupInputaws.target-groupdefault_action.target_group_arn
TLS certificateInputaws.acm-certificatecertificate_arn
Rules / deploymentOutputaws.codedeploy, aws.lb-listener-rule