Skip to content

Commit d0ced62

Browse files
authored
chore: update documenation fixes (#397)
1 parent 23b1264 commit d0ced62

File tree

1 file changed

+1
-49
lines changed
  • released/SAP-Inside-Tracks/SITBLR_MAR_2025/exercises/EXERCISE1

1 file changed

+1
-49
lines changed

released/SAP-Inside-Tracks/SITBLR_MAR_2025/exercises/EXERCISE1/README.md

Lines changed: 1 addition & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In this exercise you will learn how to use the [Terraform Provider for SAP BTP](
44

55
## Step 1: Create a new directory
66

7-
To make use of Terraform you must create several configuration files using the [Terraform configuration language](https://developer.hashicorp.com/terraform/language). Create a new directory named `my-tf-handson` under the folder `SITBLR2025`.
7+
To make use of Terraform you must create several configuration files using the [Terraform configuration language](https://developer.hashicorp.com/terraform/language). Create a new directory named `my-tf-handson`.
88

99
Terraform expects a specific file layout for its configurations. Create the following empty files in the directory `my-tf-handson`:
1010

@@ -136,29 +136,6 @@ variable "cf_space_name" {
136136
default = "dev"
137137
}
138138
139-
variable "cf_org_user" {
140-
type = set(string)
141-
description = "Defines the colleagues who are added to each subaccount as subaccount administrators."
142-
143-
}
144-
145-
variable "cf_space_managers" {
146-
type = list(string)
147-
description = "The list of Cloud Foundry space managers."
148-
default = []
149-
}
150-
151-
variable "cf_space_developers" {
152-
type = list(string)
153-
description = "The list of Cloud Foundry space developers."
154-
default = []
155-
}
156-
157-
variable "cf_space_auditors" {
158-
type = list(string)
159-
description = "The list of Cloud Foundry space auditors."
160-
default = []
161-
}
162139
```
163140
We have now defined the variables which will be required for the provider configuration. We will provide the value for this variable via the `terraform.tfvars` file.
164141

@@ -175,8 +152,6 @@ bas_admins = ["[email protected]", "[email protected]"]
175152
bas_developers = ["[email protected]", "[email protected]"]
176153
177154
cf_plan = "standard"
178-
cf_org_user = ["[email protected]"]
179-
cf_space_developers = ["[email protected]"]
180155
```
181156
The SAP BTP Global Account Subdomain can be found in the [SAP BTP Cockpit](https://apac.cockpit.btp.cloud.sap/cockpit/?idp=aviss4yru.accounts.ondemand.com#/globalaccount/6378f0c6-1b1e-4b10-8517-171cbec05c3e). Update fields with your user details.
182157

@@ -253,29 +228,6 @@ resource "cloudfoundry_space" "space" {
253228
org = btp_subaccount_environment_instance.cloudfoundry.platform_id
254229
}
255230
256-
resource "cloudfoundry_space_role" "cf_space_managers" {
257-
for_each = toset(var.cf_space_managers)
258-
username = each.value
259-
type = "space_manager"
260-
space = cloudfoundry_space.space.id
261-
depends_on = [cloudfoundry_org_role.my_role]
262-
}
263-
264-
resource "cloudfoundry_space_role" "cf_space_developers" {
265-
for_each = toset(var.cf_space_developers)
266-
username = each.value
267-
type = "space_developer"
268-
space = cloudfoundry_space.space.id
269-
depends_on = [cloudfoundry_org_role.my_role]
270-
}
271-
272-
resource "cloudfoundry_space_role" "cf_space_auditors" {
273-
for_each = toset(var.cf_space_auditors)
274-
username = each.value
275-
type = "space_auditor"
276-
space = cloudfoundry_space.space.id
277-
depends_on = [cloudfoundry_org_role.my_role]
278-
}
279231
```
280232
### Apply the Terraform configuration
281233

0 commit comments

Comments
 (0)