From 9da25137d68460a035d41adf0b927441bf7a76aa Mon Sep 17 00:00:00 2001 From: gwionap Date: Fri, 15 Sep 2023 14:54:10 +0100 Subject: [PATCH] Attach target group to lb. --- .../environments/data-and-insights-wepi/redshift.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/terraform/environments/data-and-insights-wepi/redshift.tf b/terraform/environments/data-and-insights-wepi/redshift.tf index 67f88c8cff4..7049fb12c81 100644 --- a/terraform/environments/data-and-insights-wepi/redshift.tf +++ b/terraform/environments/data-and-insights-wepi/redshift.tf @@ -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