You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Discovery Center mission - Keep the Core Clean Using SAP Build Apps with SAP S/4HANA
1
+
# Discovery Center Mission: # Discovery Center mission: Keep the Core Clean Using SAP Build Apps with SAP S/4HANA (4024)
2
2
3
3
## Overview
4
4
5
-
This sample shows how to setup your SAP BTP account for the Discovery Center Mission - [Keep the Core Clean Using SAP Build Apps with SAP S/4HANA](https://discovery-center.cloud.sap/index.html#/missiondetail/4024/)
5
+
This sample shows how to setup your SAP BTP account for the Discovery Center Mission - [Keep the Core Clean Using SAP Build Apps with SAP S/4HANA](https://discovery-center.cloud.sap/index.html#/missiondetail/4024/) for your Enterprise BTP Account.
6
6
7
-
## Content of setup
7
+
The respective setup of a trial account is described in [SAP-samples/btp-terraform-samples/tree/main/released/discovery_center/mission_4024_trial/README.md](https://github.com/SAP-samples/btp-terraform-samples/tree/main/released/discovery_center/mission_4024_trial/README.md)
8
+
9
+
## Content of setup (step1)
8
10
9
11
The setup comprises the following resources:
10
12
@@ -13,27 +15,30 @@ The setup comprises the following resources:
13
15
- Subscriptions to applications
14
16
- Role collection assignments to users
15
17
18
+
After this a setup step2 you will configure trust to use only custom IdP for in step1 subscribed SAP Build Apps.
19
+
16
20
## Deploying the resources
17
21
18
22
Make sure that you are familiar with SAP BTP and know both the [Get Started with btp-terraform-samples](https://github.com/SAP-samples/btp-terraform-samples/blob/main/GET_STARTED.md) and the [Get Started with the Terraform Provider for BTP](https://developers.sap.com/tutorials/btp-terraform-get-started.html)
19
23
20
24
To deploy the resources you must:
21
25
22
-
1. Set the environment variables BTP_USERNAME and BTP_PASSWORD to pass credentials to the BTP provider to authenticate and interact with your BTP environments.
26
+
### Setup Step1
23
27
28
+
1. Set your credentials as environment variables
29
+
24
30
```bash
25
-
export BTP_USERNAME=<your_username>
26
-
export BTP_PASSWORD=<your_password>
31
+
export BTP_USERNAME ='<Email address of your BTP user>'
32
+
export BTP_PASSWORD ='<Password of your BTP user>'
27
33
```
28
34
29
-
2. Change the variables in the `sample.tfvars` file to meet your requirements
30
-
31
-
> The minimal set of parameters you should specify (beside user_email and password) is globalaccount (i.e. its subdomain) and the used custom_idp and all user assignments
35
+
2. Go into folder `step1` and change the variables in the `sample.tfvars` file to meet your requirements
32
36
33
-
> ⚠ NOTE: You should pay attention **specifically** to the users defined in the samples.tfvars whether they already exist in your SAP BTP accounts. Otherwise you might get error messages like e.g. `Error: The user could not be found: [email protected]`.
37
+
> The minimal set of parameters you should specify (besides user_email and password) is global account (i.e. its subdomain) and the used custom_idp and all user assignments
38
+
39
+
> Keep the setting `create_tfvars_file_for_step2 = true` so that a `terraform.tfvars` file is created which contains your needed variables to execute setup `step2` without specifying them again in sample.tfvars there.
34
40
35
-
36
-
3. Initialize your workspace:
41
+
3. In folder `step1` you initialize your workspace:
37
42
38
43
```bash
39
44
terraform init
@@ -50,3 +55,35 @@ To deploy the resources you must:
50
55
```bash
51
56
terraform apply -var-file="sample.tfvars"
52
57
```
58
+
59
+
6. Verify e.g., in BTP cockpit that a new subaccount with a SAP Build Apps and SAP Build Workzone subscriptions have been created.
60
+
61
+
### Setup Step2
62
+
63
+
7. Navigate into step2 directory and initialize your workspace there as well:
64
+
65
+
```bash
66
+
terraform init
67
+
```
68
+
8. You can check what Terraform plans to apply based on your configuration:
69
+
70
+
```bash
71
+
terraform plan -var-file="terraform.tfvars"
72
+
```
73
+
74
+
9. Apply your configuration to provision the resources:
75
+
76
+
```bash
77
+
terraform apply -var-file="terraform.tfvars"
78
+
```
79
+
10. Verify e.g., in BTP cockpit that after step2 the Security/Trust Configuration in your subaccount has defined only set a user login for Custom IAS tenant, so that SAP Build Apps opens the respective login page.
80
+
81
+
With this you have completed the quick account setup as described in the Discovery Center Mission - [Keep the Core Clean Using SAP Build Apps with SAP S/4HANA](https://discovery-center.cloud.sap/index.html#/missiondetail/4024/).
82
+
83
+
## In the end
84
+
85
+
You probably want to remove the assets after trying them out to avoid unnecessary costs. To do so execute the following command:
0 commit comments