Skip to content

Commit 2356cc8

Browse files
authored
fix: variable validation fix (#734)
1 parent e06c864 commit 2356cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ variable "endpoint_type" {
77
description = "The type of endpoint to be used for creating keys. Accepts 'public' or 'private'"
88
default = "public"
99
validation {
10-
condition = can(regex("public|private", var.endpoint_type))
10+
condition = can(regex("^(public|private)$", var.endpoint_type))
1111
error_message = "The endpoint_type value must be 'public' or 'private'."
1212
}
1313
}

0 commit comments

Comments
 (0)