Skip to content

Commit

Permalink
added gateway id count
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavcompanieshouse committed Nov 22, 2024
1 parent 4d18975 commit 3f24861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions groups/infrastructure/module-albs/file-transfer-secure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ resource "aws_lb_target_group" "secure_file_transfer_18538" {
}

resource "aws_lb_target_group_attachment" "secure_file_transfer_18538" {

count = "${var.secure_file_transfer_create_alb == 1 ? length(var.gateway_ids_list) : 0}"
target_group_arn = "${aws_lb_target_group.secure_file_transfer_18538[0].arn}"
target_id = "${element(var.gateway_ids_list, 0)}"
target_id = "${element(var.gateway_ids_list, count.index)}"
port = 18538
}

Expand Down

0 comments on commit 3f24861

Please sign in to comment.