Discovery Center Mission: # Discovery Center mission: Keep the Core Clean Using SAP Build Apps with SAP S/4HANA (4024)
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 for your Enterprise BTP Account.
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
The setup comprises the following resources:
- Creation of the SAP BTP subaccount
- Entitlements of services
- Subscriptions to applications
- Role collection assignments to users
After this a setup step2 you will configure trust to use only custom IdP for in step1 subscribed SAP Build Apps.
Make sure that you are familiar with SAP BTP and know both the Get Started with btp-terraform-samples and the Get Started with the Terraform Provider for BTP
To deploy the resources you must:
-
Set your credentials as environment variables
export BTP_USERNAME ='<Email address of your BTP user>' export BTP_PASSWORD ='<Password of your BTP user>'
-
Go into folder
step1
and change the variables in thesample.tfvars
file to meet your requirementsThe 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
Keep the setting
create_tfvars_file_for_step2 = true
so that aterraform.tfvars
file is created which contains your needed variables to execute setupstep2
without specifying them again in sample.tfvars there. -
In folder
step1
you initialize your workspace:terraform init
-
You can check what Terraform plans to apply based on your configuration:
terraform plan -var-file="sample.tfvars"
-
Apply your configuration to provision the resources:
terraform apply -var-file="sample.tfvars"
-
Verify e.g., in BTP cockpit that a new subaccount with a SAP Build Apps and SAP Build Workzone subscriptions have been created.
-
Navigate into step2 directory and initialize your workspace there as well:
terraform init
-
You can check what Terraform plans to apply based on your configuration:
terraform plan -var-file="terraform.tfvars"
-
Apply your configuration to provision the resources:
terraform apply -var-file="terraform.tfvars"
-
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.
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.
You probably want to remove the assets after trying them out to avoid unnecessary costs. To do so execute the following command:
terraform destroy -var-file="terraform.tfvars"