From 49f731549a2486328d18cca5dbb7dc852f29c404 Mon Sep 17 00:00:00 2001 From: piyush Date: Wed, 3 Sep 2025 11:57:49 +0530 Subject: [PATCH] chore: Fix regex validation to enforce exact match (public or private) --- solutions/fully-configurable/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/fully-configurable/variables.tf b/solutions/fully-configurable/variables.tf index 975a567e..98ae8033 100644 --- a/solutions/fully-configurable/variables.tf +++ b/solutions/fully-configurable/variables.tf @@ -193,7 +193,7 @@ variable "kms_endpoint_type" { description = "The type of the endpoint that is used for communicating with the KMS instance. Possible values: `public` or `private` (default). Only used if not supplying an existing root key." default = "private" validation { - condition = can(regex("public|private", var.kms_endpoint_type)) + condition = can(regex("^(public|private)$", var.kms_endpoint_type)) error_message = "The specified KMS endpoint type is not supported. The following values are supported: `public` or `private`." } }