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 cfe1032 commit a876f95
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.29.1
0.29.2
22 changes: 14 additions & 8 deletions modules/vpc/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,23 @@ variable "default_network_acl" {
nullable = false

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

0 comments on commit a876f95

Please sign in to comment.