@@ -35,36 +35,18 @@ variable "subaccount_admins" {
35
35
type = list (string )
36
36
description = " Defines the colleagues who are added to each subaccount as subaccount administrators."
37
37
38
-
39
- # add validation to check if admins contains a list of valid email addresses
40
- validation {
41
- 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 )
42
- error_message = " Please enter a valid email address for the CF space managers."
43
- }
44
38
}
45
39
46
40
variable "subaccount_service_admins" {
47
41
type = list (string )
48
42
description = " Defines the colleagues who are added to each subaccount as subaccount service administrators."
49
43
50
-
51
- # add validation to check if admins contains a list of valid email addresses
52
- validation {
53
- 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 )
54
- error_message = " Please enter a valid email address for the CF space managers."
55
- }
56
44
}
57
45
58
46
variable "launchpad_admins" {
59
47
type = list (string )
60
48
description = " Defines the colleagues who are added to each subaccount as subaccount service administrators."
61
49
62
-
63
- # add validation to check if admins contains a list of valid email addresses
64
- validation {
65
- condition = length ([for email in var . launchpad_admins : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. launchpad_admins )
66
- error_message = " Please enter a valid email address for the CF space managers."
67
- }
68
50
}
69
51
70
52
variable "custom_idp" {
@@ -73,11 +55,11 @@ variable "custom_idp" {
73
55
default = " "
74
56
}
75
57
76
- variable "origin_key " {
58
+ variable "origin " {
77
59
type = string
78
- description = " Defines the origin key of the identity provider"
60
+ description = " Defines the origin of the identity provider"
79
61
default = " sap.ids"
80
- # The value for the origin_key can be defined
62
+ # The value for the origin can be defined
81
63
# but are normally set to "sap.ids", "sap.default" or "sap.custom"
82
64
}
83
65
@@ -101,12 +83,11 @@ variable "cf_org_name" {
101
83
variable "cf_org_admins" {
102
84
type = list (string )
103
85
description = " List of users to set as Cloudfoundry org administrators."
86
+ }
104
87
105
- # add validation to check if admins contains a list of valid email addresses
106
- validation {
107
- condition = length ([for email in var . cf_org_admins : can (regex (" ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\ .[a-zA-Z]{2,}$" , email))]) == length (var. cf_org_admins )
108
- error_message = " Please enter a valid email address for the CF Org admins."
109
- }
88
+ variable "cf_org_users" {
89
+ type = list (string )
90
+ description = " List of users to set as Cloudfoundry org users (pre-requisite for assigning users to other cf_roles)."
110
91
}
111
92
112
93
variable "cf_space_name" {
@@ -118,29 +99,16 @@ variable "cf_space_name" {
118
99
condition = can (regex (" ^.{1,255}$" , var. cf_space_name ))
119
100
error_message = " The Cloud Foundry space name must not be emtpy and not exceed 255 characters."
120
101
}
121
-
122
102
}
123
103
124
104
variable "cf_space_managers" {
125
105
type = list (string )
126
106
description = " Defines the colleagues who are added to a CF space as space manager."
127
-
128
- # add validation to check if admins contains a list of valid email addresses
129
- validation {
130
- 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 )
131
- error_message = " Please enter a valid email address for the CF space managers."
132
- }
133
107
}
134
108
135
109
variable "cf_space_developers" {
136
110
type = list (string )
137
111
description = " Defines the colleagues who are added to a CF space as space developer."
138
-
139
- # add validation to check if admins contains a list of valid email addresses
140
- validation {
141
- 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 )
142
- error_message = " Please enter a valid email address for the CF space developers."
143
- }
144
112
}
145
113
146
114
variable "service_plan__build_workzone" {
@@ -153,6 +121,7 @@ variable "service_plan__build_workzone" {
153
121
}
154
122
}
155
123
124
+
156
125
variable "create_tfvars_file_for_step2" {
157
126
type = bool
158
127
description = " Switch to enable the creation of the tfvars file for step 2."
0 commit comments