File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 1- 0.29.1
1+ 0.29.2
Original file line number Diff line number Diff line change @@ -176,17 +176,23 @@ variable "default_network_acl" {
176176 nullable = false
177177
178178 validation {
179- condition = alltrue ([
180- for rule in try (var. default_network_acl . ingress_rules , []) :
181- contains ([" ALLOW" , " DENY" ], rule. action )
182- ])
179+ condition = (var. default_network_acl . ingress_rules != null
180+ ? alltrue ([
181+ for rule in var . default_network_acl . ingress_rules :
182+ contains ([" ALLOW" , " DENY" ], rule. action )
183+ ])
184+ : true
185+ )
183186 error_message = " Valid values for `action` of each rules are `ALLOW` and `DENY`."
184187 }
185188 validation {
186- condition = alltrue ([
187- for rule in try (var. default_network_acl . egress_rules , []) :
188- contains ([" ALLOW" , " DENY" ], rule. action )
189- ])
189+ condition = (var. default_network_acl . egress_rules != null
190+ ? alltrue ([
191+ for rule in var . default_network_acl . egress_rules :
192+ contains ([" ALLOW" , " DENY" ], rule. action )
193+ ])
194+ : true
195+ )
190196 error_message = " Valid values for `action` of each rules are `ALLOW` and `DENY`."
191197 }
192198}
You can’t perform that action at this time.
0 commit comments