@@ -9,9 +9,10 @@ locals {
9
9
}
10
10
11
11
locals {
12
- service_name__sap_build_apps = " sap-build-apps"
13
- service_name__sap_process_automation = " process-automation"
14
- service_name__sap_integration_suite = " integrationsuite"
12
+ service_name__sap_build_apps = " sap-build-apps"
13
+ service_name__sap_process_automation = " process-automation"
14
+ service_name__sap_process_automation_service = " process-automation-service"
15
+ service_name__sap_integration_suite = " integrationsuite"
15
16
}
16
17
17
18
# ------------------------------------------------------------------------------------------------------
@@ -218,6 +219,40 @@ resource "btp_subaccount_role_collection_assignment" "sbpa_part" {
218
219
origin = local. origin_key_app_users
219
220
}
220
221
222
+ # # ------------------------------------------------------------------------------------------------------
223
+ # # Create service instance to SAP Build Process Automation
224
+ # # ------------------------------------------------------------------------------------------------------
225
+
226
+ resource "btp_subaccount_entitlement" "process_automation_service" {
227
+ subaccount_id = data. btp_subaccount . dc_mission . id
228
+ service_name = local. service_name__sap_process_automation_service
229
+ plan_name = var. service_plan__sap_process_automation_service
230
+ depends_on = [btp_subaccount_subscription . build_process_automation ]
231
+ }
232
+
233
+ # Get plan for SAP AI Core service
234
+ data "btp_subaccount_service_plan" "process_automation_service" {
235
+ subaccount_id = data. btp_subaccount . dc_mission . id
236
+ offering_name = local. service_name__sap_process_automation_service
237
+ name = var. service_plan__sap_process_automation_service
238
+ depends_on = [btp_subaccount_entitlement . process_automation_service ]
239
+ }
240
+
241
+ # Create service instance for SAP Build Process Automation Service
242
+ resource "btp_subaccount_service_instance" "process_automation_service_instance" {
243
+ subaccount_id = data. btp_subaccount . dc_mission . id
244
+ serviceplan_id = data. btp_subaccount_service_plan . process_automation_service . id
245
+ name = " build-process-automation-service-instance"
246
+ depends_on = [btp_subaccount_entitlement . process_automation_service ]
247
+ }
248
+
249
+ # Create service binding to SAP Build Process Automation Service (exposed for a specific user group)
250
+ resource "btp_subaccount_service_binding" "process_automation_service_instance_binding" {
251
+ subaccount_id = data. btp_subaccount . dc_mission . id
252
+ service_instance_id = btp_subaccount_service_instance. process_automation_service_instance . id
253
+ name = " build-process-automation-service-instance-key"
254
+ }
255
+
221
256
# ------------------------------------------------------------------------------------------------------
222
257
# Prepare and setup app: SAP Build Apps
223
258
# ------------------------------------------------------------------------------------------------------
0 commit comments