From b142c73371c765eaf0f7c3f2c24ac8e157b36aed Mon Sep 17 00:00:00 2001 From: Joseph Page Date: Tue, 3 Oct 2023 14:39:25 +0200 Subject: [PATCH] fix: domain_aliases validation incorrectly failed --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index 855fc06..5fd952c 100644 --- a/variables.tf +++ b/variables.tf @@ -177,7 +177,7 @@ variable "domain_aliases" { validation { condition = length([ for domain in var.domain_aliases : - domain if can(length(regex("^([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$", domain)) == 0) + domain if can(length(regex("^([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$", domain)) > 0) ]) == 0 error_message = "The list of domain names must contain only valid domain names." }