Skip to content

Commit

Permalink
added further changes for counts and set to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavcompanieshouse committed Nov 21, 2024
1 parent 427b517 commit fcf7b97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion groups/infrastructure/module-albs/file-transfer-secure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ resource "aws_lb_target_group" "secure_file_transfer_18538" {
resource "aws_lb_target_group_attachment" "secure_file_transfer_18538" {

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

Expand Down
2 changes: 1 addition & 1 deletion groups/infrastructure/module-albs/file-transfer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ resource "aws_lb_target_group" "filetransfer_18020" {
resource "aws_lb_target_group_attachment" "filetransfer_18020" {
count = "${var.file_transfer_create_alb == 1 ? length(var.gateway_ids_list) : 0}"
target_group_arn = "${aws_lb_target_group.filetransfer_18020[0].arn}"
target_id = "${element(var.gateway_ids_list, count.index)}"
target_id = "${element(var.gateway_ids_list, 0)}"
port = 18020
}

Expand Down

0 comments on commit fcf7b97

Please sign in to comment.