Skip to content

Commit 2b272a1

Browse files
authored
Mission 4024 (enterprise and trial) enabled for (new) quick account setup (#300)
* mission 4024 for enterprise and trial enabled for quick account setup * fixed fmt formatting issues
1 parent 474748b commit 2b272a1

File tree

24 files changed

+1179
-417
lines changed

24 files changed

+1179
-417
lines changed
Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# 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)
22

33
## Overview
44

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.
66

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)
810

911
The setup comprises the following resources:
1012

@@ -13,27 +15,30 @@ The setup comprises the following resources:
1315
- Subscriptions to applications
1416
- Role collection assignments to users
1517

18+
After this a setup step2 you will configure trust to use only custom IdP for in step1 subscribed SAP Build Apps.
19+
1620
## Deploying the resources
1721

1822
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)
1923

2024
To deploy the resources you must:
2125

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
2327

28+
1. Set your credentials as environment variables
29+
2430
```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>'
2733
```
2834

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
3236

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.
3440
35-
36-
3. Initialize your workspace:
41+
3. In folder `step1` you initialize your workspace:
3742

3843
```bash
3944
terraform init
@@ -50,3 +55,35 @@ To deploy the resources you must:
5055
```bash
5156
terraform apply -var-file="sample.tfvars"
5257
```
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:
86+
87+
```bash
88+
terraform destroy -var-file="terraform.tfvars"
89+
```

released/discovery_center/mission_4024/locals.tf

Lines changed: 0 additions & 4 deletions
This file was deleted.

released/discovery_center/mission_4024/main.tf

Lines changed: 0 additions & 282 deletions
This file was deleted.

0 commit comments

Comments
 (0)