We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24cdacd commit 593f755Copy full SHA for 593f755
main.tf
@@ -60,7 +60,7 @@ resource "aws_vpc_ipv4_cidr_block_association" "this" {
60
}
61
62
resource "aws_vpc_block_public_access_options" "this" {
63
- count = var.internet_gateway_block_enabled ? 1 : 0
+ count = local.create_vpc && length(keys(var.vpc_block_public_access_options)) ? 1 : 0
64
65
internet_gateway_block_mode = var.internet_gateway_block_mode
66
0 commit comments