diff --git a/solutions/fully-configurable/variables.tf b/solutions/fully-configurable/variables.tf index fb479e9..bb7bc5b 100644 --- a/solutions/fully-configurable/variables.tf +++ b/solutions/fully-configurable/variables.tf @@ -292,7 +292,7 @@ variable "kms_endpoint_type" { 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." default = "private" validation { - condition = can(regex("public|private", var.kms_endpoint_type)) + condition = can(regex("^(public|private)$", var.kms_endpoint_type)) error_message = "Valid values for the `kms_endpoint_type_value` are `public` or `private`. " } }