File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
solutions/fully-configurable Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ variable "service_endpoints" {
4646 default = " public"
4747
4848 validation {
49- condition = can (regex (" public|public-and-private|private" , var. service_endpoints ))
49+ condition = can (regex (" ^( public|public-and-private|private)$ " , var. service_endpoints ))
5050 error_message = " Valid values for service_endpoints are 'public', 'public-and-private', and 'private'"
5151 }
5252}
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ variable "service_endpoints" {
8686 default = " private"
8787
8888 validation {
89- condition = can (regex (" public|public-and-private|private" , var. service_endpoints ))
89+ condition = can (regex (" ^( public|public-and-private|private)$ " , var. service_endpoints ))
9090 error_message = " Valid values for service_endpoints are 'public', 'public-and-private', and 'private'"
9191 }
9292}
@@ -263,7 +263,7 @@ variable "kms_endpoint_type" {
263263 default = " private"
264264
265265 validation {
266- condition = can (regex (" public|private" , var. kms_endpoint_type ))
266+ condition = can (regex (" ^( public|private)$ " , var. kms_endpoint_type ))
267267 error_message = " The kms_endpoint_type value must be 'public' or 'private'."
268268 }
269269}
You can’t perform that action at this time.
0 commit comments