Skip to content

Commit

Permalink
Attach target group to lb.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwionap committed Sep 15, 2023
1 parent e379f2e commit 9da2513
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions terraform/environments/data-and-insights-wepi/redshift.tf
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,18 @@ resource "aws_lb_listener" "redshift-data" {
}
}

resource "aws_lb_listener" "redshift-data-ssl" {
load_balancer_arn = aws_lb.redshift-data.arn
port = "443"
protocol = "TCP"
tags = local.tags

default_action {
type = "forward"
target_group_arn = aws_lb_target_group.redshift-data-ssl.arn
}
}

resource "aws_lb_target_group" "redshift-data" {
name = "redshift-lb-tg-5439"
port = 5439
Expand Down

0 comments on commit 9da2513

Please sign in to comment.