File tree Expand file tree Collapse file tree 6 files changed +21
-14
lines changed Expand file tree Collapse file tree 6 files changed +21
-14
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ terraform {
2
2
required_providers {
3
3
btp = {
4
4
source = " sap/btp"
5
- version = " ~> 1.5 .0"
5
+ version = " ~> 1.8 .0"
6
6
}
7
7
cloudfoundry = {
8
- source = " SAP /cloudfoundry"
9
- version = " 1.0.0-rc1 "
8
+ source = " cloudfoundry /cloudfoundry"
9
+ version = " ~> 1.0.0"
10
10
}
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ terraform {
6
6
}
7
7
cloudfoundry = {
8
8
source = " cloudfoundry/cloudfoundry"
9
- version = " 1.0.0"
9
+ version = " ~> 1.0.0"
10
10
}
11
11
}
12
12
}
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ terraform {
3
3
required_providers {
4
4
btp = {
5
5
source = " sap/btp"
6
- version = " ~> 1.3 .0"
6
+ version = " ~> 1.8 .0"
7
7
}
8
8
cloudfoundry = {
9
- source = " SAP /cloudfoundry"
10
- version = " 1.0.0-rc1 "
9
+ source = " cloudfoundry /cloudfoundry"
10
+ version = " ~> 1.0.0"
11
11
}
12
12
}
13
13
}
Original file line number Diff line number Diff line change @@ -8,10 +8,17 @@ This sample shows how to deploy a Cloud Foundry application to SAP BTP trial.
8
8
9
9
The setup comprises the following resources:
10
10
11
- - Creation of a Cloud Foundry space, domain and route
11
+ - Creation of a Cloud Foundry domain and route
12
12
- Creation of XSUAA service instance
13
13
- Deployment of "Hello World" application
14
14
15
+ ## Pre-requisite for the setup
16
+
17
+ - You must have an SAP BTP trial account with a subaccount created named trial.
18
+ - The BTP subaccount should be enabled for Cloud Foundry, specifically with the Application Runtime is added.
19
+ - Ensure that you have created a space named Dev within the Cloud Foundry environment of your subaccount.
20
+ - Verify that the XSUAA service is available in your Cloud Foundry environment.
21
+
15
22
## Deploying the resources
16
23
17
24
To deploy the resources you must:
Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ resource "cloudfoundry_route" "helloterraform" {
22
22
host = " helloterraform-${ random_id . suffix . hex } "
23
23
}
24
24
25
- data "cloudfoundry_service " "xsuaa" {
26
- name = " xsuaa"
25
+ data "cloudfoundry_service_plans " "xsuaa" {
26
+ service_offering_name = " xsuaa"
27
27
}
28
28
29
29
resource "cloudfoundry_service_instance" "helloterraform_xsuaa" {
30
30
name = " helloterraform-xsuaa"
31
31
space = data. cloudfoundry_space . dev . id
32
- service_plan = data. cloudfoundry_service . xsuaa . service_plans [" application " ]
32
+ service_plan = data. cloudfoundry_service_plans . xsuaa . service_plans [0 ] . id
33
33
type = " managed"
34
34
parameters = jsonencode ({
35
35
xsappname = " helloterraform-${ random_id . suffix . hex } "
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ terraform {
2
2
required_providers {
3
3
btp = {
4
4
source = " SAP/btp"
5
- version = " ~> 1.5 .0"
5
+ version = " ~> 1.8 .0"
6
6
}
7
7
cloudfoundry = {
8
- source = " SAP /cloudfoundry"
9
- version = " 1.0.0-rc1 "
8
+ source = " cloudfoundry /cloudfoundry"
9
+ version = " 1.0.0"
10
10
}
11
11
}
12
12
}
You can’t perform that action at this time.
0 commit comments