File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
solutions/fully-configurable Expand file tree Collapse file tree 3 files changed +4
-4
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|private" , var. service_endpoints ))
49+ condition = can (regex (" ^( public|private)$ " , var. service_endpoints ))
5050 error_message = " Valid values for service_endpoints are 'public' or 'private'"
5151 }
5252}
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ variable "service_endpoints" {
9696 default = " private"
9797
9898 validation {
99- condition = can (regex (" public|private" , var. service_endpoints ))
99+ condition = can (regex (" ^( public|private)$ " , var. service_endpoints ))
100100 error_message = " Valid values for service_endpoints are 'public' or 'private'"
101101 }
102102}
@@ -234,7 +234,7 @@ variable "kms_endpoint_type" {
234234 default = " private"
235235
236236 validation {
237- condition = can (regex (" public|private" , var. kms_endpoint_type ))
237+ condition = can (regex (" ^( public|private)$ " , var. kms_endpoint_type ))
238238 error_message = " The kms_endpoint_type value must be 'public' or 'private'."
239239 }
240240}
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ variable "service_endpoints" {
122122 default = " private"
123123
124124 validation {
125- condition = can (regex (" public|private" , var. service_endpoints ))
125+ condition = can (regex (" ^( public|private)$ " , var. service_endpoints ))
126126 error_message = " Valid values for service_endpoints are 'public' and 'private'"
127127 }
128128}
You can’t perform that action at this time.
0 commit comments