File tree Expand file tree Collapse file tree 9 files changed +33
-8
lines changed
released/discovery_center Expand file tree Collapse file tree 9 files changed +33
-8
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ resource "btp_subaccount_entitlement" "sap_integration_suite" {
98
98
subaccount_id = data. btp_subaccount . dc_mission . id
99
99
service_name = local. service_name__sap_integration_suite
100
100
plan_name = var. service_plan__sap_integration_suite
101
+ amount = var. service_plan__sap_integration_suite == " free" ? 1 : null
101
102
}
102
103
103
104
data "btp_subaccount_subscriptions" "all" {
@@ -123,3 +124,4 @@ resource "btp_subaccount_role_collection_assignment" "int_prov" {
123
124
role_collection_name = " Integration_Provisioner"
124
125
user_name = each. value
125
126
}
127
+
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ output "subaccount_id" {
5
5
6
6
output "integrationsuite_url" {
7
7
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. "
9
9
}
Original file line number Diff line number Diff line change 2
2
terraform {
3
3
required_providers {
4
4
btp = {
5
- source = " sap /btp"
5
+ source = " SAP /btp"
6
6
version = " ~> 1.5.0"
7
7
}
8
8
}
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ variable "service_plan__sap_integration_suite" {
70
70
description = " The plan for SAP Integration Suite"
71
71
default = " enterprise_agreement"
72
72
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."
75
75
}
76
76
}
77
77
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ resource "btp_subaccount_entitlement" "sap_integration_suite" {
96
96
subaccount_id = data. btp_subaccount . dc_mission . id
97
97
service_name = local. service_name__sap_integration_suite
98
98
plan_name = var. service_plan__sap_integration_suite
99
+ amount = var. service_plan__sap_integration_suite == " free" ? 1 : null
99
100
}
100
101
101
102
data "btp_subaccount_subscriptions" "all" {
Original file line number Diff line number Diff line change
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
+
1
11
output "subaccount_id" {
2
12
value = data. btp_subaccount . dc_mission . id
3
13
description = " The ID of the subaccount."
Original file line number Diff line number Diff line change 1
1
terraform {
2
2
required_providers {
3
3
btp = {
4
- source = " sap /btp"
4
+ source = " SAP /btp"
5
5
version = " 1.5.0"
6
6
}
7
7
}
Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ variable "service_plan__sap_integration_suite" {
101
101
description = " The plan for SAP Integration Suite"
102
102
default = " enterprise_agreement"
103
103
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."
106
106
}
107
107
}
108
108
@@ -205,5 +205,5 @@ variable "cf_space_developers" {
205
205
variable "create_tfvars_file_for_step2" {
206
206
type = bool
207
207
description = " Switch to enable the creation of the tfvars file for step 2."
208
- default = false
208
+ default = true
209
209
}
Original file line number Diff line number Diff line change 1
1
terraform {
2
2
required_providers {
3
+ btp = {
4
+ source = " SAP/btp"
5
+ version = " 1.5.0"
6
+ }
3
7
cloudfoundry = {
4
8
source = " SAP/cloudfoundry"
5
9
version = " 1.0.0-rc1"
6
10
}
7
11
}
8
12
}
9
13
14
+ # #####################################################################
15
+ # Configure BTP provider
16
+ # #####################################################################
17
+ provider "btp" {
18
+ cli_server_url = var. cli_server_url
19
+ globalaccount = var. globalaccount
20
+ }
21
+
10
22
# #####################################################################
11
23
# Configure CF provider
12
24
# #####################################################################
You can’t perform that action at this time.
0 commit comments