From cfe10326547dfe68a7ae8a1436e67ac693c89519 Mon Sep 17 00:00:00 2001 From: Byungjin Park <posquit0.bj@gmail.com> Date: Sun, 22 Oct 2023 23:49:53 +0900 Subject: [PATCH] Fix vpc module --- VERSION | 2 +- modules/vpc/variables.tf | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index ae6dd4e..25939d3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.29.0 +0.29.1 diff --git a/modules/vpc/variables.tf b/modules/vpc/variables.tf index c73bdcc..daa4a2b 100644 --- a/modules/vpc/variables.tf +++ b/modules/vpc/variables.tf @@ -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`." }