From 8260a9e94f0f571d460bf91f384a04908a7d9fd8 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Wed, 19 Feb 2025 12:39:08 -0500 Subject: [PATCH] use lowercase --- examples/simple/variables.tf | 1 - variables.tf | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/simple/variables.tf b/examples/simple/variables.tf index 1f09513..c178434 100644 --- a/examples/simple/variables.tf +++ b/examples/simple/variables.tf @@ -12,7 +12,6 @@ variable "vpc_id" { } } - variable "subnets" { description = "Specify the subnets used by this cluster" type = list(string) diff --git a/variables.tf b/variables.tf index bbc10c6..fbc352b 100644 --- a/variables.tf +++ b/variables.tf @@ -70,10 +70,10 @@ variable "tags" { ( # Allow either production format or test format can(regex("^[\\w\\s+=.@-]*$", k)) && can(regex("^[\\w\\s+=.@-]*$", v)) || - can(regex("^Environment$", k)) && can(regex("^test$", v)) # Special case for test environment + 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'." } }