@@ -79,23 +79,11 @@ variable "origin_key" {
79
79
variable "subaccount_admins" {
80
80
type = list (string )
81
81
description = " Defines the colleagues who are added to each subaccount as subaccount administrators."
82
-
83
- # add validation to check if admins contains a list of valid email addresses
84
- validation {
85
- condition = length ([for email in var . subaccount_admins : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. subaccount_admins )
86
- error_message = " Please enter a valid email address for the Subaccount Admins."
87
- }
88
82
}
89
83
90
84
variable "subaccount_service_admins" {
91
85
type = list (string )
92
86
description = " Defines the colleagues who are added to each subaccount as subaccount service administrators."
93
-
94
- # add validation to check if admins contains a list of valid email addresses
95
- validation {
96
- condition = length ([for email in var . subaccount_service_admins : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. subaccount_service_admins )
97
- error_message = " Please enter a valid email address for the Subaccount service Admins."
98
- }
99
87
}
100
88
101
89
variable "cf_space_name" {
@@ -134,45 +122,21 @@ variable "cf_space_developers" {
134
122
variable "service_plan__sap_business_app_studio" {
135
123
type = string
136
124
description = " The plan for SAP Business Application Studio"
137
- default = " standard-edition"
138
- validation {
139
- condition = contains ([" standard-edition" ], var. service_plan__sap_business_app_studio )
140
- error_message = " Invalid value for service_plan__sap_business_app_studio. Only 'standard-edition' is allowed."
141
- }
142
125
}
143
126
144
127
variable "appstudio_developers" {
145
128
type = list (string )
146
129
description = " Business Application Studio Developers"
147
-
148
- # add validation to check if Business Application Studio Developers contains a list of valid email addresses
149
- validation {
150
- condition = length ([for email in var . appstudio_developers : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. appstudio_developers )
151
- error_message = " Please enter a valid email address for the Business Application Studio Developers"
152
- }
153
130
}
154
131
155
132
variable "appstudio_admins" {
156
133
type = list (string )
157
134
description = " Business Application Studio Administrators"
158
-
159
- # add validation to check if Business Application Studio Administrators contains a list of valid email addresses
160
- validation {
161
- condition = length ([for email in var . appstudio_admins : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. appstudio_admins )
162
- error_message = " Please enter a valid email address for the Business Application Studio Administrators."
163
- }
164
135
}
165
136
166
137
variable "hana_cloud_admins" {
167
138
type = list (string )
168
139
description = " Defines the colleagues who are added as admins to access the instance of SAP HANA Cloud."
169
-
170
-
171
- # add validation to check if admins contains a list of valid email addresses
172
- validation {
173
- condition = length ([for email in var . hana_cloud_admins : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. hana_cloud_admins )
174
- error_message = " Please enter a valid email address for the admins of SAP HANA Cloud instance."
175
- }
176
140
}
177
141
178
142
@@ -210,23 +174,11 @@ variable "hana_system_password" {
210
174
variable "event_mesh_admins" {
211
175
type = list (string )
212
176
description = " Enterprise Messaging Administrators"
213
-
214
- # add validation to check if admins contains a list of valid email addresses
215
- validation {
216
- condition = length ([for email in var . event_mesh_admins : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. event_mesh_admins )
217
- error_message = " Please enter a valid email address for the Enterprise Messaging Administrators."
218
- }
219
177
}
220
178
221
179
variable "event_mesh_developers" {
222
180
type = list (string )
223
181
description = " Enterprise Messaging Developers"
224
-
225
- # add validation to check if Enterprise Messaging Developers contains a list of valid email addresses
226
- validation {
227
- condition = length ([for email in var . event_mesh_developers : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. event_mesh_developers )
228
- error_message = " Please enter a valid email address for the Enterprise Messaging Developers."
229
- }
230
182
}
231
183
232
184
variable "service_plan__build_workzone" {
@@ -242,45 +194,21 @@ variable "service_plan__build_workzone" {
242
194
variable "workzone_se_administrators" {
243
195
type = list (string )
244
196
description = " Workzone Standard Edition Administrators"
245
-
246
- # add validation to check if Workzone Standard Edition Administrators contains a list of valid email addresses
247
- validation {
248
- condition = length ([for email in var . workzone_se_administrators : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. workzone_se_administrators )
249
- error_message = " Please enter a valid email address for the Workzone Standard Edition Administratorss."
250
- }
251
197
}
252
198
253
199
variable "tms_admins" {
254
200
type = list (string )
255
201
description = " TMS Administrators"
256
-
257
- # add validation to check if TMS Administrators contains a list of valid email addresses
258
- validation {
259
- condition = length ([for email in var . tms_admins : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. tms_admins )
260
- error_message = " Please enter a valid email address for the TMS Administrators."
261
- }
262
202
}
263
203
264
204
variable "tms_import_operators" {
265
205
type = list (string )
266
206
description = " TMS Import Operators"
267
-
268
- # add validation to check if TMS Import Operators contains a list of valid email addresses
269
- validation {
270
- condition = length ([for email in var . tms_import_operators : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. tms_import_operators )
271
- error_message = " Please enter a valid email address for the TMS Import Operators."
272
- }
273
207
}
274
208
275
209
variable "cicd_service_admins" {
276
210
type = list (string )
277
211
description = " CICD Service Administrators"
278
-
279
- # add validation to check if CICD Service Administrators contains a list of valid email addresses
280
- validation {
281
- condition = length ([for email in var . cicd_service_admins : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. cicd_service_admins )
282
- error_message = " Please enter a valid email address for the CICD Service Administrators."
283
- }
284
212
}
285
213
286
214
# ------------------------------------------------------------------------------------------------------
0 commit comments