Skip to content

Commit cfe1032

Browse files
committed
Fix vpc module
1 parent a97b840 commit cfe1032

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.29.0
1+
0.29.1

modules/vpc/variables.tf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,15 @@ variable "default_network_acl" {
177177

178178
validation {
179179
condition = alltrue([
180-
for rule in var.default_network_acl.ingress_rules :
180+
for rule in try(var.default_network_acl.ingress_rules, []) :
181181
contains(["ALLOW", "DENY"], rule.action)
182-
if var.default_network_acl.ingress_rules != null
183182
])
184183
error_message = "Valid values for `action` of each rules are `ALLOW` and `DENY`."
185184
}
186185
validation {
187186
condition = alltrue([
188-
for rule in var.default_network_acl.egress_rules :
187+
for rule in try(var.default_network_acl.egress_rules, []) :
189188
contains(["ALLOW", "DENY"], rule.action)
190-
if var.default_network_acl.egress_rules != null
191189
])
192190
error_message = "Valid values for `action` of each rules are `ALLOW` and `DENY`."
193191
}

0 commit comments

Comments
 (0)