@@ -13,43 +13,6 @@ resource "btp_subaccount" "dc_mission" {
13
13
region = lower (var. region )
14
14
}
15
15
16
- # ------------------------------------------------------------------------------------------------------
17
- # SERVICES
18
- # ------------------------------------------------------------------------------------------------------
19
- #
20
- locals {
21
- # optional
22
- service_name__cicd_service = " cicd-service"
23
- }
24
- # ------------------------------------------------------------------------------------------------------
25
- # Setup cicd-service (SAP Continuous Integration and Delivery), (not running in CF environment)
26
- # ------------------------------------------------------------------------------------------------------
27
- # Entitle
28
- resource "btp_subaccount_entitlement" "cicd_service" {
29
- count = var. use_optional_resources ? 1 : 0
30
- subaccount_id = btp_subaccount. dc_mission . id
31
- service_name = local. service_name__cicd_service
32
- plan_name = var. service_plan__cicd_service
33
- }
34
- # Get serviceplan_id for cicd-service with plan_name "default"
35
- data "btp_subaccount_service_plan" "cicd_service" {
36
- count = var. use_optional_resources ? 1 : 0
37
- subaccount_id = btp_subaccount. dc_mission . id
38
- offering_name = local. service_name__cicd_service
39
- name = var. service_plan__cicd_service
40
- depends_on = [btp_subaccount_entitlement . cicd_service ]
41
- }
42
- # Create service instance
43
- resource "btp_subaccount_service_instance" "cicd_service" {
44
- count = var. use_optional_resources ? 1 : 0
45
- subaccount_id = btp_subaccount. dc_mission . id
46
- serviceplan_id = data. btp_subaccount_service_plan . cicd_service [0 ]. id
47
- name = " default_cicd-service"
48
- # Subscription to the cicd-app subscription is required for creating the service instance
49
- # See as well https://help.sap.com/docs/continuous-integration-and-delivery/sap-continuous-integration-and-delivery/optional-enabling-api-usage?language=en-US
50
- depends_on = [btp_subaccount_subscription . cicd_app ]
51
- }
52
-
53
16
# ------------------------------------------------------------------------------------------------------
54
17
# APP SUBSCRIPTIONS
55
18
# ------------------------------------------------------------------------------------------------------
0 commit comments