Skip to content

Commit 0ed1580

Browse files
authored
fix: variable validation fix (#753)
1 parent c3b9c9a commit 0ed1580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ variable "key_ring_endpoint_type" {
135135
description = "The type of endpoint to be used for creating key rings. Accepts 'public' or 'private'"
136136
default = "public"
137137
validation {
138-
condition = can(regex("public|private", var.key_ring_endpoint_type))
138+
condition = can(regex("^(public|private)$", var.key_ring_endpoint_type))
139139
error_message = "The endpoint_type value must be 'public' or 'private'."
140140
}
141141
}
@@ -145,7 +145,7 @@ variable "key_endpoint_type" {
145145
description = "The type of endpoint to be used for creating keys. Accepts 'public' or 'private'"
146146
default = "public"
147147
validation {
148-
condition = can(regex("public|private", var.key_endpoint_type))
148+
condition = can(regex("^(public|private)$", var.key_endpoint_type))
149149
error_message = "The endpoint_type value must be 'public' or 'private'."
150150
}
151151
}

0 commit comments

Comments
 (0)