Skip to content

Commit 4067132

Browse files
authored
fix: regex validation for kms_endpoint_type (#544)
1 parent 4babbe9 commit 4067132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solutions/fully-configurable/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ variable "kms_endpoint_type" {
193193
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."
194194
default = "private"
195195
validation {
196-
condition = can(regex("public|private", var.kms_endpoint_type))
196+
condition = can(regex("^(public|private)$", var.kms_endpoint_type))
197197
error_message = "The specified KMS endpoint type is not supported. The following values are supported: `public` or `private`."
198198
}
199199
}

0 commit comments

Comments
 (0)