File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments