Terraform resource: aws lb listener
(Redirected from Aws lb listener)
Jump to navigation
Jump to search
- Terraform resource:
aws_lb_listener
protocol
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener#protocol
Examples[edit]
resource "aws_lb_listener" "front_end" { load_balancer_arn = aws_lb.front_end.arn port = "80" protocol = "HTTP" default_action { type = "redirect" redirect { port = "443" protocol = "HTTPS" status_code = "HTTP_301" } } }
Arguments[edit]
Required:
Optional:
aws_lb_listener: default_action
certificate_arn
target_group_arn
stickiness
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener#stickinessprotocol
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener#protocol
- action block:
forward, redirect, fixed-response, authenticate-cognito and authenticate-oidc
. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener_rule#action-blocks
Errors[edit]
Error: Unsupported argument
Error: creating ELBv2 Listener
UnsupportedCertificate
IncompatibleProtocols
Related terms[edit]
See also[edit]
Advertising: