1
- # #####################################################################
2
- # Customer account setup
3
- # #####################################################################
4
- # subaccount
1
+ # ------------------------------------------------------------------------------------------------------
2
+ # Account variables
3
+ # ------------------------------------------------------------------------------------------------------
5
4
variable "globalaccount" {
6
5
type = string
7
- description = " The globalaccount subdomain."
8
- default = " yourglobalaccount"
6
+ description = " The globalaccount subdomain where the sub account shall be created."
9
7
}
10
8
11
- variable "subaccount_id " {
9
+ variable "cli_server_url " {
12
10
type = string
13
- description = " The subaccount ID."
11
+ description = " The BTP CLI server URL."
12
+ default = " https://cli.btp.cloud.sap"
13
+ }
14
+
15
+ variable "custom_idp" {
16
+ type = string
17
+ description = " The custom identity provider for the subaccount."
14
18
default = " "
15
19
}
16
20
17
- # subaccount
21
+ variable "custom_idp_apps_origin_key" {
22
+ type = string
23
+ description = " The custom identity provider for the subaccount."
24
+ default = " sap.custom"
25
+ }
26
+
27
+ variable "region" {
28
+ type = string
29
+ description = " The region where the subaccount shall be created in."
30
+ default = " us10"
31
+ }
32
+
18
33
variable "subaccount_name" {
19
34
type = string
20
35
description = " The subaccount name."
21
- default = " UC - Deliver Connected Experiences with a single view of Material Availability "
36
+ default = " My SAP Build Code subaccount. "
22
37
}
23
38
24
- variable "custom_idp " {
39
+ variable "subaccount_id " {
25
40
type = string
26
- description = " Defines the custom IdP "
41
+ description = " The subaccount ID. "
27
42
default = " "
28
43
}
29
44
45
+ # ------------------------------------------------------------------------------------------------------
46
+ # cf related variables
47
+ # ------------------------------------------------------------------------------------------------------
30
48
variable "origin" {
31
49
type = string
32
- description = " Defines the origin of the identity provider"
50
+ description = " Defines the origin key of the identity provider"
33
51
default = " sap.ids"
34
- # The value for the origin can be defined
52
+ # The value for the origin_key can be defined
35
53
# but are normally set to "sap.ids", "sap.default" or "sap.custom"
36
54
}
37
55
38
- variable "cf_space_name " {
56
+ variable "origin_key " {
39
57
type = string
40
- description = " Name of the Cloud Foundry space."
41
- default = " dev"
42
-
43
- validation {
44
- condition = can (regex (" ^.{1,255}$" , var. cf_space_name ))
45
- error_message = " The Cloud Foundry space name must not be emtpy and not exceed 255 characters."
46
- }
58
+ description = " Defines the origin key of the identity provider"
59
+ default = " "
60
+ # The value for the origin_key can be defined, set to "sap.ids", "sap.default" or "sap.custom"
47
61
}
48
62
49
63
variable "cf_landscape_label" {
@@ -55,141 +69,140 @@ variable "cf_landscape_label" {
55
69
variable "cf_org_name" {
56
70
type = string
57
71
description = " Name of the Cloud Foundry org."
58
- default = " mission-4356 "
72
+ default = " mission-4441-sap-build-code "
59
73
60
74
validation {
61
75
condition = can (regex (" ^.{1,255}$" , var. cf_org_name ))
62
76
error_message = " The Cloud Foundry org name must not be emtpy and not exceed 255 characters."
63
77
}
64
78
}
65
- # Region
66
- variable "region " {
79
+
80
+ variable "cf_space_name " {
67
81
type = string
68
- description = " The region where the project account shall be created in."
69
- default = " us10"
82
+ description = " Name of the Cloud Foundry space."
83
+ default = " dev"
84
+
85
+ validation {
86
+ condition = can (regex (" ^.{1,255}$" , var. cf_space_name ))
87
+ error_message = " The Cloud Foundry space name must not be emtpy and not exceed 255 characters."
88
+ }
70
89
}
71
90
91
+ /*
72
92
# hana password
73
93
variable "hana_cloud_system_password" {
74
94
type = string
75
95
description = "The system password for the hana_cloud service instance."
76
96
default = "Abcd1234"
77
97
}
98
+ */
78
99
79
- # CLI server
80
- variable "cli_server_url" {
100
+ # ------------------------------------------------------------------------------------------------------
101
+ # services plans
102
+ # ------------------------------------------------------------------------------------------------------
103
+ variable "service_plan__cloudfoundry" {
81
104
type = string
82
- description = " The BTP CLI server URL."
83
- default = " https://cpcli.cf.eu10.hana.ondemand.com"
105
+ description = " The plan for service 'Destination Service' with technical name 'destination'"
106
+ default = " standard"
107
+ validation {
108
+ condition = contains ([" standard" ], var. service_plan__cloudfoundry )
109
+ error_message = " Invalid value for service_plan__cloudfoundry. Only 'standard' is allowed."
110
+ }
84
111
}
85
112
86
- # subaccount variables
87
- variable "subaccount_admins" {
88
- type = list (string )
89
- description = " Defines the colleagues who are added to each subaccount as subaccount administrators."
90
-
113
+ variable "service_plan__connectivity" {
114
+ type = string
115
+ description = " The plan for service 'Connectivity Service' with technical name 'connectivity'"
116
+ default = " lite"
91
117
}
92
118
93
- variable "subaccount_service_admins" {
94
- type = list (string )
95
- description = " Defines the colleagues who are added to each subaccount as subaccount service administrators."
96
-
119
+ variable "service_plan__destination" {
120
+ type = string
121
+ description = " The plan for service 'Destination Service' with technical name 'destination'"
122
+ default = " lite"
123
+ }
124
+
125
+ variable "service_plan__html5_apps_repo" {
126
+ type = string
127
+ description = " The plan for service 'HTML5 Application Repository Service' with technical name 'html5-apps-repo'"
128
+ default = " app-host"
97
129
}
98
130
99
- variable "service_plan__sap_integration_suite" {
131
+ variable "service_plan__xsuaa" {
132
+ type = string
133
+ description = " The plan for service 'Authorization and Trust Management Service' with technical name 'xsuaa'"
134
+ default = " application"
135
+ }
136
+
137
+ # ------------------------------------------------------------------------------------------------------
138
+ # app subscription plans
139
+ # ------------------------------------------------------------------------------------------------------
140
+ variable "service_plan__integrationsuite" {
100
141
type = string
101
- description = " The plan for SAP Integration Suite"
142
+ description = " The plan for service ' Integration Suite' with technical name 'integrationsuite' "
102
143
default = " enterprise_agreement"
103
144
validation {
104
- condition = contains ([" free " , " enterprise_agreement " ], var. service_plan__sap_integration_suite )
105
- error_message = " Invalid value for service_plan__sap_integration_suite . Only 'free ' and 'enterprise_agreement ' are allowed."
145
+ condition = contains ([" enterprise_agreement " , " free " ], var. service_plan__integrationsuite )
146
+ error_message = " Invalid value for service_plan__integrationsuite . Only 'enterprise_agreement ' and 'free ' are allowed."
106
147
}
107
148
}
108
149
109
- variable "service_plan__sap_business_app_studio " {
150
+ variable "service_plan__sapappstudio " {
110
151
type = string
111
- description = " The plan for SAP Business Application Studio"
152
+ description = " The plan for service ' SAP Business Application Studio' with technical name 'sapappstudio' "
112
153
default = " standard-edition"
113
154
validation {
114
- condition = contains ([" standard-edition" ], var. service_plan__sap_business_app_studio )
115
- error_message = " Invalid value for service_plan__sap_business_app_studio . Only 'standard-edition' is allowed."
155
+ condition = contains ([" standard-edition" ], var. service_plan__sapappstudio )
156
+ error_message = " Invalid value for service_plan__sapappstudio . Only 'standard-edition' is allowed."
116
157
}
117
158
}
118
159
119
160
# ------------------------------------------------------------------------------------------------------
120
- # Entitlements
161
+ # User lists
121
162
# ------------------------------------------------------------------------------------------------------
122
- variable "entitlements" {
123
- type = list (object ({
124
- service_name = string
125
- plan_name = string
126
- type = string
127
- }))
128
- description = " The list of entitlements that shall be added to the subaccount."
129
- default = [
130
- {
131
- service_name = " connectivity"
132
- plan_name = " lite" ,
133
- type = " service"
134
- },
135
- {
136
- service_name = " destination"
137
- plan_name = " lite" ,
138
- type = " service"
139
- },
140
- {
141
- service_name = " html5-apps-repo"
142
- plan_name = " app-host" ,
143
- type = " service"
144
- },
145
- {
146
- service_name = " xsuaa"
147
- plan_name = " application" ,
148
- type = " service"
149
- }
150
- ]
151
- }
152
-
153
- variable "appstudio_developers" {
163
+ variable "subaccount_admins" {
154
164
type = list (string )
155
- description = " Business Application Studio Developer"
156
-
165
+ description = " Defines the colleagues who are added to subaccount as administrator"
157
166
}
158
167
159
- variable "appstudio_admins " {
168
+ variable "subaccount_service_admins " {
160
169
type = list (string )
161
- description = " Business Application Studio Administrator"
162
-
170
+ description = " Defines the colleagues who are added to subaccount as service administrator"
163
171
}
164
172
165
- variable "cloudconnector_admins " {
173
+ variable "integration_provisioners " {
166
174
type = list (string )
167
- description = " Cloud Connector Administrator"
168
-
175
+ description = " Integration Provisioner"
169
176
}
170
177
171
- variable "conn_dest_admins " {
178
+ variable "sapappstudio_admins " {
172
179
type = list (string )
173
- description = " Connectivity and Destination Administrator"
174
-
180
+ description = " Defines the colleagues who are administrators for SAP Business Application Studio."
175
181
}
176
182
177
- variable "int_provisioners " {
183
+ variable "sapappstudio_developers " {
178
184
type = list (string )
179
- description = " Integration Provisioner"
180
-
185
+ description = " Defines the colleagues who are developers for SAP Business Application Studio."
181
186
}
182
187
188
+ variable "cloud_connector_admins" {
189
+ type = list (string )
190
+ description = " Defines the colleagues who are administrators for Cloud Connector"
191
+ }
183
192
184
- variable "cf_org_users " {
193
+ variable "connectivity_destination_admins " {
185
194
type = list (string )
186
- description = " CF Org Users"
187
-
195
+ description = " Defines the colleagues who are administrators for Connectivity and Destinations"
188
196
}
189
197
190
198
variable "cf_org_admins" {
191
199
type = list (string )
192
- description = " List of users to set as Cloudfoundry org administrators."
200
+ description = " Defines the colleagues who are added to a Cloudfoundry as org administrators."
201
+ }
202
+
203
+ variable "cf_org_users" {
204
+ type = list (string )
205
+ description = " Defines the colleagues who are added to a Cloudfoundry as org users."
193
206
}
194
207
195
208
variable "cf_space_managers" {
@@ -202,6 +215,9 @@ variable "cf_space_developers" {
202
215
description = " Defines the colleagues who are added to a CF space as space developer."
203
216
}
204
217
218
+ # ------------------------------------------------------------------------------------------------------
219
+ # Switch for creating tfvars for step 2
220
+ # ------------------------------------------------------------------------------------------------------
205
221
variable "create_tfvars_file_for_step2" {
206
222
type = bool
207
223
description = " Switch to enable the creation of the tfvars file for step 2."
0 commit comments