From c17e17541dd1906152dbc72e15d5c0f36f8feab6 Mon Sep 17 00:00:00 2001 From: gwionap Date: Fri, 15 Sep 2023 10:23:42 +0100 Subject: [PATCH] Added missing security group id. --- terraform/environments/data-and-insights-wepi/redshift.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/terraform/environments/data-and-insights-wepi/redshift.tf b/terraform/environments/data-and-insights-wepi/redshift.tf index 704a010faea..3b3a2f6eaf8 100644 --- a/terraform/environments/data-and-insights-wepi/redshift.tf +++ b/terraform/environments/data-and-insights-wepi/redshift.tf @@ -164,6 +164,7 @@ resource "aws_security_group_rule" "lb_tcp_5439_ingress_vpc" { resource "aws_security_group_rule" "lb_tcp_5439_egress_redshift" { for_each = toset([for node in aws_redshift_cluster.wepi_redshift_cluster.cluster_nodes : node.private_ip_address]) + security_group_id = aws_security_group.redshift-data-lb.id from_port = 5439 protocol = "TCP" cidr_blocks = [format("%s/32", each.value)]