Skip to content

Commit ec78447

Browse files
piyush117iamar7
andauthored
fix: variable validation fix (#96)
Co-authored-by: Md Anam Raihan <[email protected]>
1 parent d561692 commit ec78447

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
@@ -292,7 +292,7 @@ variable "kms_endpoint_type" {
292292
description = "The type of endpoint to use for communicating with the Key Protect or Hyper Protect Crypto Services instance. Possible values: `public`, `private`. Applies only if `existing_cos_kms_key_crn` is not specified."
293293
default = "private"
294294
validation {
295-
condition = can(regex("public|private", var.kms_endpoint_type))
295+
condition = can(regex("^(public|private)$", var.kms_endpoint_type))
296296
error_message = "Valid values for the `kms_endpoint_type_value` are `public` or `private`. "
297297
}
298298
}

0 commit comments

Comments
 (0)