Skip to content

Commit 1e804eb

Browse files
authored
3585: removed not used cicd service (#305)
1 parent 7eec32c commit 1e804eb

File tree

3 files changed

+0
-54
lines changed

3 files changed

+0
-54
lines changed

released/discovery_center/mission_3585/main.tf

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,43 +13,6 @@ resource "btp_subaccount" "dc_mission" {
1313
region = lower(var.region)
1414
}
1515

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-
5316
# ------------------------------------------------------------------------------------------------------
5417
# APP SUBSCRIPTIONS
5518
# ------------------------------------------------------------------------------------------------------

released/discovery_center/mission_3585/outputs.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ output "sap_launchpad_subscription_url" {
1313
description = "SAP Build Work Zone, standard edition subscription URL."
1414
}
1515

16-
output "cicd_service_id" {
17-
value = var.use_optional_resources ? btp_subaccount_service_instance.cicd_service[0].id : null
18-
}
19-
2016
output "cicd_app_subscription_url" {
2117
value = var.use_optional_resources ? btp_subaccount_subscription.cicd_app[0].subscription_url : null
2218
description = "Continuous Integration & Delivery subscription URL."

released/discovery_center/mission_3585/variables.tf

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,6 @@ variable "use_optional_resources" {
3636
default = true
3737
}
3838

39-
# ------------------------------------------------------------------------------------------------------
40-
# service plans
41-
# ------------------------------------------------------------------------------------------------------
42-
variable "service_plan__cicd_service" {
43-
type = string
44-
description = "The plan for service 'SAP Continuous Integration and Delivery' with technical name 'cicd-service'"
45-
default = "default"
46-
validation {
47-
condition = contains(["default"], var.service_plan__cicd_service)
48-
error_message = "Invalid value for service_plan__cicd_service. Only 'default' is allowed."
49-
}
50-
}
51-
5239
# ------------------------------------------------------------------------------------------------------
5340
# app subscription plans
5441
# ------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)