Skip to content

Commit 2742552

Browse files
piyush117ocofaigh
andauthored
fix: variable validation fix (#1046)
Co-authored-by: Conall Ó Cofaigh <[email protected]>
1 parent 0cab25f commit 2742552

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
@@ -608,7 +608,7 @@ variable "kms_endpoint_type" {
608608
description = "The type of endpoint to use for communicating with the KMS. Possible values: `public`, `private`. Applies only if `existing_flow_logs_bucket_kms_key_crn` is not specified."
609609
default = "private"
610610
validation {
611-
condition = can(regex("public|private", var.kms_endpoint_type))
611+
condition = can(regex("^(public|private)$", var.kms_endpoint_type))
612612
error_message = "Valid values for the `kms_endpoint_type_value` are `public` or `private`."
613613
}
614614
}

0 commit comments

Comments
 (0)