Skip to content

Commit

Permalink
Fix vpc module
Browse files Browse the repository at this point in the history
  • Loading branch information
posquit0 committed Oct 22, 2023
1 parent a97b840 commit cfe1032
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.29.0
0.29.1
6 changes: 2 additions & 4 deletions modules/vpc/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,15 @@ variable "default_network_acl" {

validation {
condition = alltrue([
for rule in var.default_network_acl.ingress_rules :
for rule in try(var.default_network_acl.ingress_rules, []) :
contains(["ALLOW", "DENY"], rule.action)
if var.default_network_acl.ingress_rules != null
])
error_message = "Valid values for `action` of each rules are `ALLOW` and `DENY`."
}
validation {
condition = alltrue([
for rule in var.default_network_acl.egress_rules :
for rule in try(var.default_network_acl.egress_rules, []) :
contains(["ALLOW", "DENY"], rule.action)
if var.default_network_acl.egress_rules != null
])
error_message = "Valid values for `action` of each rules are `ALLOW` and `DENY`."
}
Expand Down

0 comments on commit cfe1032

Please sign in to comment.