Difference between revisions of "Terraform resource: aws lb listener"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
   protocol          = "HTTP"
 
   protocol          = "HTTP"
 
   
 
   
   default_action {
+
   [[default_action]] {
 
     type = "[[redirect]]"
 
     type = "[[redirect]]"
 
   
 
   
Line 38: Line 38:
 
* <code>[[stickiness]]</code> https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener#stickiness
 
* <code>[[stickiness]]</code> https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener#stickiness
 
* <code>[[protocol]]</code> https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener#protocol
 
* <code>[[protocol]]</code> https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener#protocol
 +
 +
* action block: <code>[[forward]], [[redirect]], [[fixed-response]], [[authenticate-cognito]] and [[authenticate-oidc]]</code>. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener_rule#action-blocks
 +
 +
== Errors ==
 +
* <code>[[Error: Unsupported argument]]</code>
 +
* <code>[[Error: creating ELBv2 Listener]]</code>
 +
* <code>[[UnsupportedCertificate]]</code>
 +
* <code>[[IncompatibleProtocols]]</code>
  
 
== Related terms ==
 
== Related terms ==
* [[Error: Unsupported argument]]
 
 
* <code>[[aws elb create-load-balancer-listeners]]</code>
 
* <code>[[aws elb create-load-balancer-listeners]]</code>
* <code>[[IncompatibleProtocols]]</code>
+
* <code>[[aws_lb_listener_rule]]</code>
 
* [[DNS name]]
 
* [[DNS name]]
  

Latest revision as of 13:34, 8 June 2023

  • Terraform resource: aws_lb_listener

Examples[edit]

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_listener#redirect-action

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:

Errors[edit]

Related terms[edit]

See also[edit]

Advertising: