Skip to content

Commit

Permalink
fix enable versions
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Dec 17, 2020
1 parent f1b8d7b commit 287f0f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ resource "aws_subnet" "public" {
# similar to your security groups in order to add an additional layer of
# security to your VPC.
resource "aws_network_acl" "public" {
count = var.enable_acl == true && var.type == "public" || var.type == "public-private" && signum(length(var.public_network_acl_id)) == 0 ? 1 : 0
count = var.enable_acl == true && (var.type == "public" || var.type == "public-private") && signum(length(var.public_network_acl_id)) == 0 ? 1 : 0

vpc_id = var.vpc_id
subnet_ids = aws_subnet.public.*.id
Expand Down Expand Up @@ -237,7 +237,7 @@ resource "aws_subnet" "private" {
# similar to your security groups in order to add an additional layer of
# security to your VPC.
resource "aws_network_acl" "private" {
count = var.enable_acl == true && var.type == "private" || var.type == "public-private" && signum(length(var.public_network_acl_id)) == 0 ? 1 : 0
count = var.enable_acl == true && (var.type == "private" || var.type == "public-private") && signum(length(var.public_network_acl_id)) == 0 ? 1 : 0

vpc_id = var.vpc_id
subnet_ids = aws_subnet.private.*.id
Expand Down

0 comments on commit 287f0f7

Please sign in to comment.