Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Dec 30, 2022
1 parent dcbad5d commit 455b753
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nacls/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ locals {
"boc:created_by" = "terraform"
}

public_ids = length(var.public_subnet_ids) > 0 ? var.public_subnet_ids : [for subnet in var.public_subnets_ids : subnet.id if try(lookup(subnet.tags, "boc:vpc:route-table", null)) != "attachment"]
private_ids = length(var.private_subnet_ids) > 0 ? var.private_subnet_ids : [for subnet in var.private_subnets_ids : subnet.id]
attachment_ids = length(var.attachment_subnet_ids) > 0 ? var.attachment_subnet_ids : [for subnet in var.private_subnets_ids : subnet.id if try(lookup(subnet.tags, "boc:vpc:route-table", null)) == "attachment"]
public_ids = length(var.public_subnet_ids) > 0 ? var.public_subnet_ids : [for subnet in var.public_subnets_ids : subnet.id]
private_ids = length(var.private_subnet_ids) > 0 ? var.private_subnet_ids : [for subnet in var.private_subnets_ids : subnet.id if lookup(subnet.tags, "boc:vpc:route-table", null) != "attachment"]
attachment_ids = length(var.attachment_subnet_ids) > 0 ? var.attachment_subnet_ids : [for subnet in var.private_subnets_ids : subnet.id if lookup(subnet.tags, "boc:vpc:route-table", null) == "attachment"]
}

#---
Expand Down

0 comments on commit 455b753

Please sign in to comment.