Skip to content

Commit 85e2e8d

Browse files
author
navyakhurana
committed
Added free plan for integration suite & minor fix
1 parent 1e804eb commit 85e2e8d

File tree

5 files changed

+27
-4
lines changed

5 files changed

+27
-4
lines changed

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)