Skip to content

Commit 1cfaeb3

Browse files
committed
chore: update screenshot SIT
1 parent 1bb7671 commit 1cfaeb3

File tree

3 files changed

+27
-7
lines changed

3 files changed

+27
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ variable "costcenter" {
9797
variable "org_name" {
9898
type = string
9999
description = "Defines to which organization the project account shall belong to."
100-
default = "HandsOn"
100+
default = "Exporter"
101101
}
102102
variable "bas_admins" {
103103
type = list(string)
@@ -310,6 +310,6 @@ terraform apply
310310

311311
## Summary
312312

313-
You've now successfully created a SAP BTP Subaccount with active resources, We will export this Subaccount using BTP Terraform exporter.
313+
You have successfully created an SAP BTP Subaccount with active resources using Terraform. Now, imagine you already have an existing subaccount and want to bring it under Terraform's management. This exercise will guide you through that process.
314314

315315
Continue to - [Exercise 2 - Export BTP Subaccount Using BTP Terraform Exporter](../EXERCISE2/README.md).

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

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ Pre-requisites:
2323
- Copy the subaccount ID you have created, And run the below command
2424

2525
```bash
26-
btptf create-json --subaccount <Your Subaccount ID>
26+
btptf create-json --subaccount < Your Subaccount ID >
2727
```
2828
This command will create a file named `btp_resource_<subaccount_id>.json`
2929

3030
You should see the following output:
3131

3232
<img width="600px" src="assets/createJson.png" alt="btptf create-json">
3333

34-
If you want any of the resources (Entitlements, Role collections, Roles, etc) to be excluded from the Subaccount that you are going to export, Remove them from the `btp_resource_<subaccount_id>.json`.
34+
If you want any of the resources (Entitlements, Role collections, Roles, etc) to be excluded from the Subaccount that you are going to export, Remove them from the `btp_resources_<subaccount_id>.json`.
3535

3636
You should see the `btp_resource_<subaccount_id>.json` like below:
3737

@@ -51,7 +51,7 @@ You should see the following output:
5151

5252
<img width="600px" src="assets/exportbyjson.png" alt="export by json output">
5353

54-
## Export the resources
54+
## Export the BTP resources
5555

5656
You can go the the `generated_configurations` folder, There you will see all the generated scripts.
5757

@@ -64,21 +64,41 @@ You should see the below output:
6464

6565
<img width="600px" src="assets/tfapply.png" alt="terraform apply output">
6666

67-
Now all the resources are exported and you can see the stae file under the folder `generated_configurations_<subaccount_id>`
67+
Now all the resources are exported and you can see the state file under the folder `generated_configurations_<subaccount_id>`
6868

6969
> [!TIP]
7070
> If you do not want to use Json file input, You can also use the `btptf export -S <subaccount_id>` command to export all the resources under one Subaccount.
7171
72+
## Export Cloudfoundry resources
73+
74+
To export Cloud Foundry resources, we use the Organization's ID.
75+
76+
As we did in the previous BTP export, we will first create the JSON file. However, this time, we only want to export the spaces. To do this, run the following command:
77+
78+
```bash
79+
btptf export --organization < Organization ID > --resources spaces
80+
```
81+
You should see the below output:
82+
83+
<img width="600px" src="assets/exportcforg.png" alt="terraform export cf org">
84+
85+
This command will generate the configuration files under `generated_configurations_<organization_ID>`.
86+
87+
In this case, we are exporting all spaces from the Cloud Foundry organization, and we do not need to provide a JSON file as input.
88+
89+
7290
### Summary
7391

7492
Congratulations! You have successfully completed the hands-on exercise.
7593

76-
This demonstrates how the BTP Terraform Exporter can be used to bring an existing BTP Subaccount under Terraform management. Without this tool, these tasks would be cumbersome and prone to errors.
94+
This demonstrates how the BTP Terraform Exporter can be used to bring an existing BTP Subaccount under Terraform management. Without this tool, managing these tasks would be cumbersome and more susceptible to errors.
7795

7896
### For Further References
7997

8098
Vist below links
8199

100+
- https://github.com/SAP/terraform-exporter-btp.git
101+
82102
- https://learning.sap.com/learning-journeys/getting-started-with-terraform-on-sap-btp
83103

84104
If you'd like to review some Terraform sample scripts, we've published them in the following repository for your reference.
114 KB
Loading

0 commit comments

Comments
 (0)