From 255c177a52d9000d60e4bb7409cd58832bf05b41 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Wed, 19 Feb 2025 13:02:43 -0500 Subject: [PATCH] update validation --- variables.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variables.tf b/variables.tf index fbc352b..7060880 100644 --- a/variables.tf +++ b/variables.tf @@ -69,11 +69,11 @@ variable "tags" { length(v) <= 256 && ( # Allow either production format or test format - can(regex("^[\\w\\s+=.@-]*$", k)) && can(regex("^[\\w\\s+=.@-]*$", v)) || + can(regex("^[\\w\\s+=.:@-]*$", k)) && can(regex("^[\\w\\s+=.:@-]*$", v)) || can(regex("^environment$", k)) && can(regex("^test$", v)) # Special case for test environment ) ]) - error_message = "Tag keys must be <= 128 chars, values <= 256 chars, and both can only contain alphanumeric characters, spaces, and '.+-=@_'. For test environment, use 'environment': 'test'." + error_message = "Tag keys must be <= 128 chars, values <= 256 chars, and both can only contain alphanumeric characters, spaces, and '.+-=@_:'. For test environment, use 'environment': 'test'." } }