From a105f9f7645eaf4d657135c7ea1bc14e5c7b28f5 Mon Sep 17 00:00:00 2001 From: badra001 Date: Thu, 8 Feb 2024 16:06:34 -0500 Subject: [PATCH] update --- permissionset/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/permissionset/variables.tf b/permissionset/variables.tf index 6f8dc05..956c96c 100644 --- a/permissionset/variables.tf +++ b/permissionset/variables.tf @@ -51,7 +51,7 @@ variable "auto_policy_count" { default = null validation { - condition = var.auto_policy_count == null || can(var.auto_policy_count > 0 && var.auto_policy_count <= 20) + condition = var.auto_policy_count == null || (try(var.auto_policy_count >= 0, false) && try(var.auto_policy_count <= 20, false)) error_message = "auto_policy_coount may be null or between 0 and 20, inclusive." } }