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 73a3c2e commit 608eb2aCopy full SHA for 608eb2a
main.tf
@@ -66,7 +66,7 @@ resource "aws_vpc_block_public_access_options" "this" {
66
}
67
68
resource "aws_vpc_block_public_access_exclusion" "this" {
69
- for_each = var.vpc_block_public_access_exclusions
+ for_each = {for k, v in var.vpc_block_public_access_exclusions: k => v if local.create_vpc}
70
71
vpc_id = lookup(each.value, "exclude_vpc", false) ? local.vpc_id : null
72
0 commit comments