Skip to content

Commit b7b4a35

Browse files
authored
fix: variable validation fix (#763)
1 parent bb85733 commit b7b4a35

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
@@ -30,7 +30,7 @@ variable "endpoint_type" {
3030
default = "public"
3131

3232
validation {
33-
condition = can(regex("public|private", var.endpoint_type))
33+
condition = can(regex("^(public|private)$", var.endpoint_type))
3434
error_message = "Variable 'endpoint_type' must be 'public' or 'private'."
3535
}
3636
}

0 commit comments

Comments
 (0)