@@ -18,73 +18,34 @@ variable "origin" {
18
18
variable "cf_org_managers" {
19
19
type = list (string )
20
20
description = " List of Cloud Foundry org managers."
21
- default = []
22
-
23
- # add validation to check if admins contains a list of valid email addresses
24
- validation {
25
- condition = length ([for email in var . cf_org_managers : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. cf_org_managers )
26
- error_message = " Please enter a valid email address for the Cloud Foundry org managers."
27
- }
28
21
}
29
22
30
23
variable "cf_org_billing_managers" {
31
24
type = list (string )
32
25
description = " List of Cloud Foundry org billing managers."
33
26
default = []
34
-
35
- # add validation to check if admins contains a list of valid email addresses
36
- validation {
37
- condition = length ([for email in var . cf_org_billing_managers : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. cf_org_billing_managers )
38
- error_message = " Please enter a valid email address for the subaccount admins."
39
- }
40
27
}
41
28
42
29
variable "cf_org_auditors" {
43
30
type = list (string )
44
31
description = " List of Cloud Foundry org auditors."
45
32
default = []
46
-
47
- # add validation to check if admins contains a list of valid email addresses
48
- validation {
49
- condition = length ([for email in var . cf_org_auditors : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. cf_org_auditors )
50
- error_message = " Please enter a valid email address for the subaccount admins."
51
- }
52
33
}
53
34
54
35
variable "cf_space_managers" {
55
36
type = list (string )
56
37
description = " List of managers for the Cloud Foundry space."
57
- default = []
58
-
59
- # add validation to check if admins contains a list of valid email addresses
60
- validation {
61
- condition = length ([for email in var . cf_space_managers : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. cf_space_managers )
62
- error_message = " Please enter a valid email address for the subaccount admins."
63
- }
64
38
}
65
39
66
40
variable "cf_space_developers" {
67
41
type = list (string )
68
42
description = " List of developers for the Cloud Foundry space."
69
- default = []
70
-
71
- # add validation to check if admins contains a list of valid email addresses
72
- validation {
73
- condition = length ([for email in var . cf_space_developers : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. cf_space_developers )
74
- error_message = " Please enter a valid email address for the subaccount admins."
75
- }
76
43
}
77
44
78
45
variable "cf_space_auditors" {
79
46
type = list (string )
80
47
description = " The list of Cloud Foundry space auditors."
81
48
default = []
82
-
83
- # add validation to check if admins contains a list of valid email addresses
84
- validation {
85
- condition = length ([for email in var . cf_space_auditors : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. cf_space_auditors )
86
- error_message = " Please enter a valid email address for the subaccount admins."
87
- }
88
49
}
89
50
90
51
variable "cf_space_name" {
0 commit comments