Skip to content

Commit 593f755

Browse files
Update main.tf
Co-authored-by: Anton Babenko <[email protected]>
1 parent 24cdacd commit 593f755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ resource "aws_vpc_ipv4_cidr_block_association" "this" {
6060
}
6161

6262
resource "aws_vpc_block_public_access_options" "this" {
63-
count = var.internet_gateway_block_enabled ? 1 : 0
63+
count = local.create_vpc && length(keys(var.vpc_block_public_access_options)) ? 1 : 0
6464

6565
internet_gateway_block_mode = var.internet_gateway_block_mode
6666
}

0 commit comments

Comments
 (0)