Skip to content

ADD/Refactor DC missions: 4033, 4172, 3501 & 4356 #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
87be52f
uc: events to business action
mahesh0431 Sep 10, 2023
839b422
Added Readme - UC - Events to Business Actions
mahesh0431 Sep 10, 2023
78211fe
Added the environment variables documentation
mahesh0431 Sep 10, 2023
bab3bee
documentation
mahesh0431 Sep 28, 2023
59b2047
Update provider.tf
rui1610 Oct 4, 2023
44ae93f
Update terraform.tfvars
rui1610 Oct 4, 2023
4e5b1fe
Merge branch 'main' of https://github.com/SAP-samples/btp-terraform-s…
mahesh0431 Oct 5, 2023
1c50fd0
new structure and btp provider changes
mahesh0431 Oct 6, 2023
3de3460
docu update
mahesh0431 Oct 6, 2023
26f27a2
removed .vscode folder
mahesh0431 Oct 6, 2023
f2bb479
readme update for dcmission 4172
mahesh0431 Oct 6, 2023
1f0bb8c
mission 4356
mahesh0431 Oct 9, 2023
f798413
Merge branch 'SAP-samples:main' into main
mahesh0431 Oct 15, 2023
4d7a739
DC Mission 4033 and updates to 4172 - AEM
mahesh0431 Oct 18, 2023
e47651a
cf space creation removed
mahesh0431 Oct 19, 2023
64eea9a
DC Missions - 4033,4172,4356 restructuring
mahesh0431 Oct 20, 2023
be23d0d
formatting
mahesh0431 Oct 20, 2023
b3bac56
dependencies update
mahesh0431 Oct 23, 2023
d320802
Merge branch 'main' of https://github.com/mahesh0431/btp-terraform-sa…
mahesh0431 Oct 28, 2023
a5faa05
4033 4356
mahesh0431 Jul 2, 2024
f39d743
4033 and 4356
mahesh0431 Jul 2, 2024
304b6d7
Merge branch 'main' of https://github.com/mahesh0431/btp-terraform-sa…
mahesh0431 Jul 2, 2024
16b8cb8
4033 and 4356
mahesh0431 Jul 2, 2024
c11a007
update variables
rui1610 Jul 2, 2024
4db86c8
rename folders
rui1610 Jul 2, 2024
9983ae0
4172 changes
mahesh0431 Jul 2, 2024
6008b6f
3501 changes
mahesh0431 Jul 3, 2024
35b3ad3
Merge pull request #1 from rui1610/main
mahesh0431 Jul 4, 2024
05e6378
fixes variables
mahesh0431 Jul 4, 2024
0fc1880
Merge branch 'SAP-samples:main' into main
mahesh0431 Jul 4, 2024
bcd9d19
formatting
mahesh0431 Jul 4, 2024
9cbda42
Merge branch 'main' of https://github.com/mahesh0431/btp-terraform-sa…
mahesh0431 Jul 4, 2024
7f63f8a
Merge branch 'main' into main
rui1610 Jul 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions released/discovery_center/mission_3501/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Discovery Center Mission: Enhance core ERP business processes with resilient applications on SAP BTP (3501)

## Overview

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

## Content of setup

The setup comprises the following resources:

- Creation of the SAP BTP subaccount
- Entitlements of services
- Subscriptions to applications
- Role collection assignments to users
- Creation of CF environments
- Management of users and roles on org and space level

## Deploying the resources

To deploy the resources you must:

1. Export environment variables BTP_USERNAME, BTP_PASSWORD, CF_USER, and CF_PASSWORD with your username and password for the custom IdP of your global account.

2. Change the variables in the `samples.tfvars` file in the main folder to meet your requirements

> ⚠ 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: jane.doe@test.com`.

3. Execute the apply.sh script.

4. Verify e.g., in BTP cockpit that a new subaccount with a integration suite, SAP Business Application Studio, CF environment instance and a CF space have been created.

5. Clean up by running the destroy.sh script.
14 changes: 14 additions & 0 deletions released/discovery_center/mission_3501/apply.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

cd step1

terraform init
terraform apply -var-file='../samples.tfvars' -auto-approve
terraform output > ../step2/step1vars.tfvars

cd ../step2

terraform init
terraform apply -var-file=step1vars.tfvars -var-file='../samples.tfvars' -auto-approve

cd ..
12 changes: 12 additions & 0 deletions released/discovery_center/mission_3501/destroy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

cd step2

terraform destroy -var-file=step1vars.tfvars -var-file='../samples.tfvars' -auto-approve
rm step1vars.tfvars

cd ../step1

terraform destroy -var-file='../samples.tfvars' -auto-approve

cd ..
28 changes: 28 additions & 0 deletions released/discovery_center/mission_3501/samples.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
globalaccount = "myglobalaccount"
region = "us10"
subaccount_name = "Discovery Center mission - 3501"
cf_org_name = "cf-environment"

subaccount_admins = ["john.doe@sap.com"]
subaccount_service_admins = ["john.doe@sap.com"]

appstudio_developers = ["john.doe@sap.com"]
appstudio_admins = ["john.doe@sap.com"]
cloudconnector_admins = ["john.doe@sap.com"]
conn_dest_admins = ["john.doe@sap.com"]

cf_space_developers = ["john.doe@sap.com"]
cf_space_managers = ["john.doe@sap.com"]
cf_org_admins = ["john.doe@sap.com"]
cf_org_users = ["john.doe@sap.com"]

hana_system_password = "Abc12345"
hana_cloud_admins = ["john.doe@sap.com"]

event_mesh_admins = ["john.doe@sap.com"]
event_mesh_developers = ["john.doe@sap.com"]

workzone_se_administrators = ["john.doe@sap.com"]
cicd_service_admins = ["john.doe@sap.com"]
tms_admins = ["john.doe@sap.com"]
tms_import_operators = ["john.doe@sap.com"]
5 changes: 5 additions & 0 deletions released/discovery_center/mission_3501/step1/locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
locals {
service__sap_business_app_studio = "sapappstudio"
service_name__hana_cloud_tools = "hana-cloud-tools"
service_name__build_workzone = "SAPLaunchpad"
}
Loading