Ver código fonte

Adds nlb redirect to get teleport working

Brad Poulton 4 anos atrás
pai
commit
9efec5af64
1 arquivos alterados com 11 adições e 0 exclusões
  1. 11 0
      base/teleport-single-instance/nlb.tf

+ 11 - 0
base/teleport-single-instance/nlb.tf

@@ -40,6 +40,17 @@ resource "aws_lb_listener" "nlb-listener-3024" {
   }
 }
 
+resource "aws_lb_listener" "nlb-listener-443" {
+  load_balancer_arn = aws_lb.nlb.arn
+  port              = "443"
+  protocol          = "TCP"
+
+  default_action {
+    type             = "forward"
+    target_group_arn = aws_lb_target_group.nlb-target-3024.arn
+  }
+}
+
 resource "aws_lb_listener" "nlb-listener-3026" {
   load_balancer_arn = aws_lb.nlb.arn
   port              = "3026"