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
Choice—HTTP
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)
Choice—ELBSecurityPolicy-TLS13-1-2-2021-06
Default action
Options: Forward to target group, Redirect, Fixed response
Choice—forward
Redirect hostText—#{host}
Redirect pathText—/#{path}
Redirect portText—443
Redirect protocol
Options: HTTPS, HTTP
Choice—HTTPS
Redirect status
Options: 301 Permanent, 302 Found
Choice—HTTP_302
Fixed response bodyText——
Fixed response content typeText—text/plain
Fixed response statusNumber—200
ALPN policy (TLS NLB)List——
Mutual TLS enabledToggle—false
Mutual TLS mode
Options: Off, Passthrough, Verify
Choice—off
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—