Skip to content

Commit 64a0bef

Browse files
authored
chore: update usecase trial cf deployment (#348)
1 parent 8d0f969 commit 64a0bef

File tree

6 files changed

+21
-14
lines changed

6 files changed

+21
-14
lines changed

released/cicd/setup_subaccount_cf/provider.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ terraform {
22
required_providers {
33
btp = {
44
source = "sap/btp"
5-
version = "~> 1.5.0"
5+
version = "~> 1.8.0"
66
}
77
cloudfoundry = {
8-
source = "SAP/cloudfoundry"
9-
version = "1.0.0-rc1"
8+
source = "cloudfoundry/cloudfoundry"
9+
version = "~> 1.0.0"
1010
}
1111
}
1212
}

released/usecases/dev_test_prod_setup/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ terraform {
66
}
77
cloudfoundry = {
88
source = "cloudfoundry/cloudfoundry"
9-
version = "1.0.0"
9+
version = "~> 1.0.0"
1010
}
1111
}
1212
}

released/usecases/devops/provider.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ terraform {
33
required_providers {
44
btp = {
55
source = "sap/btp"
6-
version = "~> 1.3.0"
6+
version = "~> 1.8.0"
77
}
88
cloudfoundry = {
9-
source = "SAP/cloudfoundry"
10-
version = "1.0.0-rc1"
9+
source = "cloudfoundry/cloudfoundry"
10+
version = "~> 1.0.0"
1111
}
1212
}
1313
}

released/usecases/trial_cf_deployment/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@ This sample shows how to deploy a Cloud Foundry application to SAP BTP trial.
88

99
The setup comprises the following resources:
1010

11-
- Creation of a Cloud Foundry space, domain and route
11+
- Creation of a Cloud Foundry domain and route
1212
- Creation of XSUAA service instance
1313
- Deployment of "Hello World" application
1414

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+
1522
## Deploying the resources
1623

1724
To deploy the resources you must:

released/usecases/trial_cf_deployment/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ resource "cloudfoundry_route" "helloterraform" {
2222
host = "helloterraform-${random_id.suffix.hex}"
2323
}
2424

25-
data "cloudfoundry_service" "xsuaa" {
26-
name = "xsuaa"
25+
data "cloudfoundry_service_plans" "xsuaa" {
26+
service_offering_name = "xsuaa"
2727
}
2828

2929
resource "cloudfoundry_service_instance" "helloterraform_xsuaa" {
3030
name = "helloterraform-xsuaa"
3131
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
3333
type = "managed"
3434
parameters = jsonencode({
3535
xsappname = "helloterraform-${random_id.suffix.hex}"

released/usecases/trial_cf_deployment/provider.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ terraform {
22
required_providers {
33
btp = {
44
source = "SAP/btp"
5-
version = "~> 1.5.0"
5+
version = "~> 1.8.0"
66
}
77
cloudfoundry = {
8-
source = "SAP/cloudfoundry"
9-
version = "1.0.0-rc1"
8+
source = "cloudfoundry/cloudfoundry"
9+
version = "1.0.0"
1010
}
1111
}
1212
}

0 commit comments

Comments
 (0)