Skip to content

Commit b2a67ec

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solutions/instances/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ variable "kms_endpoint_type" {
528528
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."
529529
default = "private"
530530
validation {
531-
condition = can(regex("public|private", var.kms_endpoint_type))
531+
condition = can(regex("^(public|private)$", var.kms_endpoint_type))
532532
error_message = "Valid values for the `kms_endpoint_type_value` are `public` or `private`. "
533533
}
534534
}

0 commit comments

Comments
 (0)