Skip to content

chore: update usecase trial cf deployment #348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions released/cicd/setup_subaccount_cf/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ terraform {
required_providers {
btp = {
source = "sap/btp"
version = "~> 1.5.0"
version = "~> 1.7.0"
}
cloudfoundry = {
source = "SAP/cloudfoundry"
version = "1.0.0-rc1"
source = "cloudfoundry/cloudfoundry"
version = "1.0.0"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions released/usecases/devops/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ terraform {
required_providers {
btp = {
source = "sap/btp"
version = "~> 1.3.0"
version = "~> 1.7.0"
}
cloudfoundry = {
source = "SAP/cloudfoundry"
version = "1.0.0-rc1"
source = "cloudfoundry/cloudfoundry"
version = "1.0.0"
}
}
}
Expand Down
9 changes: 8 additions & 1 deletion released/usecases/trial_cf_deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ This sample shows how to deploy a Cloud Foundry application to SAP BTP trial.

The setup comprises the following resources:

- Creation of a Cloud Foundry space, domain and route
- Creation of a Cloud Foundry domain and route
- Creation of XSUAA service instance
- Deployment of "Hello World" application

## Pre-requisite for the setup

- You must have an SAP BTP trial account with a subaccount created named trial.
- The BTP subaccount should be enabled for Cloud Foundry, specifically with the Application Runtime is added.
- Ensure that you have created a space named Dev within the Cloud Foundry environment of your subaccount.
- Verify that the XSUAA service is available in your Cloud Foundry environment.

## Deploying the resources

To deploy the resources you must:
Expand Down
6 changes: 3 additions & 3 deletions released/usecases/trial_cf_deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ resource "cloudfoundry_route" "helloterraform" {
host = "helloterraform-${random_id.suffix.hex}"
}

data "cloudfoundry_service" "xsuaa" {
name = "xsuaa"
data "cloudfoundry_service_plans" "xsuaa" {
service_offering_name = "xsuaa"
}

resource "cloudfoundry_service_instance" "helloterraform_xsuaa" {
name = "helloterraform-xsuaa"
space = data.cloudfoundry_space.dev.id
service_plan = data.cloudfoundry_service.xsuaa.service_plans["application"]
service_plan = data.cloudfoundry_service_plans.xsuaa.service_plans[0].id
type = "managed"
parameters = jsonencode({
xsappname = "helloterraform-${random_id.suffix.hex}"
Expand Down
6 changes: 3 additions & 3 deletions released/usecases/trial_cf_deployment/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ terraform {
required_providers {
btp = {
source = "SAP/btp"
version = "~> 1.5.0"
version = "~> 1.7.0"
}
cloudfoundry = {
source = "SAP/cloudfoundry"
version = "1.0.0-rc1"
source = "cloudfoundry/cloudfoundry"
version = "1.0.0"
}
}
}
Expand Down