Skip to content

Commit

Permalink
Fixing duplicate named resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwionap committed Sep 15, 2023
1 parent 88d1e49 commit e379f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/environments/data-and-insights-wepi/redshift.tf
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ resource "aws_lb_target_group_attachment" "redshift-data" {
port = 5439
}

resource "aws_lb_target_group_attachment" "redshift-data" {
resource "aws_lb_target_group_attachment" "redshift-data-ssl" {
for_each = toset([for node in aws_redshift_cluster.wepi_redshift_cluster.cluster_nodes : node.private_ip_address])
target_group_arn = aws_lb_target_group.redshift-data-ssl.arn
target_id = each.value
Expand Down

0 comments on commit e379f2e

Please sign in to comment.