Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ terraform {
required_providers {
btp = {
source = "sap/btp"
version = "~> 1.8.0"
version = "~> 1.9.0"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,29 @@ output "cloudfoundry_org_name" {
description = "The name of the cloudfoundry org connected to the project account."
}
```
### Step 4: Apply the changes

### Step 4: Adjust the provider configuration

As we are using an additional provider we must make Terraform aware of this in the `provider.tf` file. Open the `provider.tf` file and add the following code to the `required_provider` block:

```terraform
cloudfoundry = {
source = "cloudfoundry/cloudfoundry"
version = "1.2.0"
}
```

To configure the Cloud Foundry provider add the following lines at the end of the file:

```terraform
provider "cloudfoundry" {
api_url = "https://api.cf.${var.region}-001.hana.ondemand.com"
}
```

Save your changes.

### Step 5: Apply the changes

1. Plan the Terraform configuration to see what will be created:

Expand Down
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.8.0"
version = "~> 1.9.0"
}
cloudfoundry = {
source = "cloudfoundry/cloudfoundry"
version = "~> 1.1.0"
version = "~> 1.2.0"
}
}
}
Expand Down
Loading