Skip to content

Commit 6864466

Browse files
authored
Mission: 4356 & 4038- Added free plan for integration suite & minor fix (#308)
1 parent 1e804eb commit 6864466

File tree

9 files changed

+33
-8
lines changed

9 files changed

+33
-8
lines changed

released/discovery_center/mission_4038/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ resource "btp_subaccount_entitlement" "sap_integration_suite" {
9898
subaccount_id = data.btp_subaccount.dc_mission.id
9999
service_name = local.service_name__sap_integration_suite
100100
plan_name = var.service_plan__sap_integration_suite
101+
amount = var.service_plan__sap_integration_suite == "free" ? 1 : null
101102
}
102103

103104
data "btp_subaccount_subscriptions" "all" {
@@ -123,3 +124,4 @@ resource "btp_subaccount_role_collection_assignment" "int_prov" {
123124
role_collection_name = "Integration_Provisioner"
124125
user_name = each.value
125126
}
127+

released/discovery_center/mission_4038/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ output "subaccount_id" {
55

66
output "integrationsuite_url" {
77
value = btp_subaccount_subscription.sap_integration_suite.subscription_url
8-
description = "Subscription URL for SAP Business Process Automation"
8+
description = "Subscription URL for SAP Integration Suite."
99
}

released/discovery_center/mission_4038/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
terraform {
33
required_providers {
44
btp = {
5-
source = "sap/btp"
5+
source = "SAP/btp"
66
version = "~> 1.5.0"
77
}
88
}

released/discovery_center/mission_4038/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ variable "service_plan__sap_integration_suite" {
7070
description = "The plan for SAP Integration Suite"
7171
default = "enterprise_agreement"
7272
validation {
73-
condition = contains(["enterprise_agreement"], var.service_plan__sap_integration_suite)
74-
error_message = "Invalid value for service_plan__sap_integration_suite. Only 'enterprise_agreement' are allowed."
73+
condition = contains(["free", "enterprise_agreement"], var.service_plan__sap_integration_suite)
74+
error_message = "Invalid value for service_plan__sap_integration_suite. Only 'free' and 'enterprise_agreement' are allowed."
7575
}
7676
}
7777

released/discovery_center/mission_4356/step1/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ resource "btp_subaccount_entitlement" "sap_integration_suite" {
9696
subaccount_id = data.btp_subaccount.dc_mission.id
9797
service_name = local.service_name__sap_integration_suite
9898
plan_name = var.service_plan__sap_integration_suite
99+
amount = var.service_plan__sap_integration_suite == "free" ? 1 : null
99100
}
100101

101102
data "btp_subaccount_subscriptions" "all" {

released/discovery_center/mission_4356/step1/outputs.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
output "globalaccount" {
2+
value = var.globalaccount
3+
description = "The globalaccount subdomain."
4+
}
5+
6+
output "cli_server_url" {
7+
value = var.cli_server_url
8+
description = "The BTP CLI server URL."
9+
}
10+
111
output "subaccount_id" {
212
value = data.btp_subaccount.dc_mission.id
313
description = "The ID of the subaccount."

released/discovery_center/mission_4356/step1/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
btp = {
4-
source = "sap/btp"
4+
source = "SAP/btp"
55
version = "1.5.0"
66
}
77
}

released/discovery_center/mission_4356/step1/variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ variable "service_plan__sap_integration_suite" {
101101
description = "The plan for SAP Integration Suite"
102102
default = "enterprise_agreement"
103103
validation {
104-
condition = contains(["enterprise_agreement"], var.service_plan__sap_integration_suite)
105-
error_message = "Invalid value for service_plan__sap_integration_suite. Only 'enterprise_agreement' is allowed."
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."
106106
}
107107
}
108108

@@ -205,5 +205,5 @@ variable "cf_space_developers" {
205205
variable "create_tfvars_file_for_step2" {
206206
type = bool
207207
description = "Switch to enable the creation of the tfvars file for step 2."
208-
default = false
208+
default = true
209209
}

released/discovery_center/mission_4356/step2/provider.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
terraform {
22
required_providers {
3+
btp = {
4+
source = "SAP/btp"
5+
version = "1.5.0"
6+
}
37
cloudfoundry = {
48
source = "SAP/cloudfoundry"
59
version = "1.0.0-rc1"
610
}
711
}
812
}
913

14+
######################################################################
15+
# Configure BTP provider
16+
######################################################################
17+
provider "btp" {
18+
cli_server_url = var.cli_server_url
19+
globalaccount = var.globalaccount
20+
}
21+
1022
######################################################################
1123
# Configure CF provider
1224
######################################################################

0 commit comments

Comments
 (0)