|
| 1 | +# Discovery Center Mission: Enhance core ERP business processes with resilient applications on SAP BTP (3501) - Step 1 |
| 2 | + |
| 3 | +## Overview |
| 4 | + |
| 5 | +This sample shows how to create a landscape for the Discovery Center Mission - [Enhance core ERP business processes with resilient applications on SAP BTP](https://discovery-center.cloud.sap/missiondetail/3501/) |
| 6 | + |
| 7 | +## Content of setup |
| 8 | + |
| 9 | +The setup comprises the following resources: |
| 10 | + |
| 11 | +- Creation of the SAP BTP subaccount |
| 12 | +- Entitlements of services |
| 13 | +- Subscriptions to applications |
| 14 | +- Role collection assignments to users |
| 15 | +- Creation of CF environments |
| 16 | +- Management of users and roles on org and space level |
| 17 | + |
| 18 | +## Deploying the resources |
| 19 | + |
| 20 | +To deploy the resources you must: |
| 21 | + |
| 22 | +1. Set your credentials as environment variables |
| 23 | + |
| 24 | + ```bash |
| 25 | + export BTP_USERNAME ='<Email address of your BTP user>' |
| 26 | + export BTP_PASSWORD ='<Password of your BTP user>' |
| 27 | + export CF_USER ='<Email address of your BTP user>' |
| 28 | + export CF_PASSWORD ='<Password of your BTP user>' |
| 29 | + ``` |
| 30 | + |
| 31 | +2. Change the variables in the `sample.tfvars` file in the main folder to meet your requirements |
| 32 | + |
| 33 | + > 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 |
| 34 | +
|
| 35 | + > ⚠ NOTE: You should pay attention **specifically** to the users defined in the sample.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]`. |
| 36 | +
|
| 37 | + |
| 38 | +3. Initialize your workspace: |
| 39 | + |
| 40 | + ```bash |
| 41 | + terraform init |
| 42 | + ``` |
| 43 | + |
| 44 | +4. You can check what Terraform plans to apply based on your configuration: |
| 45 | + |
| 46 | + ```bash |
| 47 | + terraform plan -var-file="sample.tfvars" |
| 48 | + ``` |
| 49 | + |
| 50 | +5. Apply your configuration to provision the resources: |
| 51 | + |
| 52 | + ```bash |
| 53 | + terraform apply -var-file="sample.tfvars" |
| 54 | + ``` |
| 55 | + |
| 56 | +## In the end |
| 57 | + |
| 58 | +You probably want to remove the assets after trying them out to avoid unnecessary costs. To do so execute the following command: |
| 59 | + |
| 60 | +```bash |
| 61 | +terraform destroy -var-file="sample.tfvars" |
| 62 | +``` |
0 commit comments