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
Copy file name to clipboardExpand all lines: Code/AWS/README.md
-102
Original file line number
Diff line number
Diff line change
@@ -14,105 +14,3 @@ Before generating data, please complete the following steps
14
14
[Kinesis data generator](https://awslabs.github.io/amazon-kinesis-data-generator/web/producer.html) can help simulate an output from Monitron. The template uses faker.js for variables. A [template file](./kinesisdatatemplate.json)
15
15
to generate the output is available in the github repo. Please make further modifications as necessary.
16
16

17
-
18
-
## SAP BTP integration pattern
19
-
If the SAP ECC or S/4 HANA system is an API provider to BTP, please use the below architecture. The architecture uses an APIKey for authentication. The preflow policy contains snippets from here to pass the provider credentials and xcsrf token to the consumer.
20
-

21
-
22
-
The API proxy and policy steps are taken from the [SAP documentation](https://blogs.sap.com/2020/08/10/consuming-sap-on-premise-data-through-sap-api-management/) to pass the APIKey and XCSRF token.
23
-

24
-

25
-

26
-
27
-
28
-
This project is intended to be sample code only. Not for use in production.
29
-
30
-
This project will create the following in your AWS cloud environment specified:
31
-
* Lambda Layers
32
-
* Lambda for detecting Anomalies and creating notifications in SAP
33
-
* Roles
34
-
* DynamoDB
35
-
* S3 Notifications
36
-
37
-
## Deploying the CDK Project
38
-
39
-
This project is set up like a standard Python project. For an integrated development environment (IDE), use `AWS Cloud9 environment` to create python virtual environment for the project with required dependencies.
40
-
41
-
1. Launch your AWS Cloud9 environment.
42
-
43
-
2. Clone the github repository and navigate to the directory.
After the init process completes and the virtualenv is created, you can use the following
58
-
step to activate your virtualenv.
59
-
60
-
```
61
-
$ source .env/bin/activate
62
-
```
63
-
64
-
Once the virtualenv is activated, you can install the required dependencies.
65
-
66
-
```
67
-
$ pip install -r requirements.txt
68
-
```
69
-
70
-
The `appConfig.json` file takes the input paramters for the stack. Maintain the following parameters in the `appConfig.json` before deploying the stack
71
-
72
-
## AWS environment details
73
-
*`account` Enter AWS account id of your AWS cloud environment
74
-
*`region` Enter Region information where the stack resources needs to be created
75
-
*`vpcId` Enter the VPC for Lambda execution from where Lambda can access SAP resources and look out for vision
76
-
*`subnet` Enter the subnet for Lambda exection
77
-
## Resource Identifiers
78
-
*`stackname` Enter an Identifier/Name for the CDK stack
79
-
*`ddbtablename` Enter a name for Dynamo DB Table that would be created as part of the stack which would hold the metadata for creating Service notification in SAP
80
-
## Bucket Structure
81
-
*`bucketname` Enter the name of the bucketwhere the inferences are sent.
82
-
*`inferencefolder` Enter the name of the folder(prefix)where the inferences are sent. Leave blank if no folder
83
-
## SAP Environnment details
84
-
*`SAP_AUTH_SECRET` Provide the arn where the credentials with keys `user` and `password` or `APIkey` if using SAP BTP for accessing SAP services.
85
-
*`SAP_HOST_NAME` Host name of the instance for accessing the SAP OData service e.g. hostname of load balancer/Web Dispatcher/SAP Gateway. If using BTP, please pass host alias
86
-
*`SAP_PORT` provide the port on which the SAP service can be accesed e.g 443/50001
87
-
*`SAP_PROTOCOL` Enter protocol ushing which the service will be accessed HTTPS/HTTP
88
-
89
-
90
-
Bootstrap your AWS account for CDK. Please check [here](https://docs.aws.amazon.com/cdk/latest/guide/tools.html) for more details on bootstraping for CDK. Bootstraping deploys a CDK toolkit stack to your account and creates a S3 bucket for storing various artifacts. You incur any charges for what the AWS CDK stores in the bucket. Because the AWS CDK does not remove any objects from the bucket, the bucket can accumulate objects as you use the AWS CDK. You can get rid of the bucket by deleting the CDKToolkit stack from your account.
Copy file name to clipboardExpand all lines: documentation/Step1-Setup-SAPBTP-Subaccount/README.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -71,5 +71,7 @@ If you already have an existing HANA Instance, you can map it to this SAP BTP su
71
71
72
72
### 4. Set Up SAP Business Application Studio
73
73
74
-
Refer [Manage Authorizations and Roles](https://help.sap.com/docs/SAP%20Business%20Application%20Studio/9d1db9835307451daa8c930fbd9ab264/01e69c53003c4b0a8a64310a3f08867d.html) to assign permissions to users.
74
+
1. Refer [Subscribe to SAP Business Application Studio](https://help.sap.com/docs/bas/sap-business-application-studio/subscribe-to-sap-business-application-studio) and subscribe to SAP Business Application Studio.
75
+
76
+
2. Refer [Manage Authorizations and Roles](https://help.sap.com/docs/SAP%20Business%20Application%20Studio/9d1db9835307451daa8c930fbd9ab264/01e69c53003c4b0a8a64310a3f08867d.html) to assign permissions to users for accessing SAP Business Application Studio.
Copy file name to clipboardExpand all lines: documentation/Step5-Setup-AWS/README.md
+20-6
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This project is set up like a standard Python project. For an integrated development environment (IDE), use `SAP Business Application Studio` to create python virtual environment for the project with required dependencies.
4
4
5
-
1.To access the SAP Business Application Studio, go to your subaccount, navigate to **Services** > and choose **Instances and Subscriptions**.
5
+
1.To access the SAP Business Application Studio, go to your subaccount, navigate to **Services** > and choose **Instances and Subscriptions**.
6
6
Choose the row for the SAP Business Application Studio subscription and choose **Go to Application**
7
7
8
8

@@ -20,7 +20,9 @@ This project is set up like a standard Python project. For an integrated develo
### For SAP_AEM_CREDENTIALS, follow the steps below.
87
+
84
88
1. The values for these variables needs to be stored in the **AWS Secrets Manager**. Go to your **AWS account** and search for **secret**, choose **Secrets Manager**
85
89
86
90

87
91
88
-
2. For Storing **SAP_AEM_CREDENTIALS** we need the Advanced Event Mesh UserName and Password. Open the Advanced Event Mesh Application from the BTP Cockpit.
92
+
2. For Storing **SAP_AEM_CREDENTIALS** we need the Advanced Event Mesh Username and Password. Open the Advanced Event Mesh Application from the BTP Cockpit.
89
93
90
94

91
95
@@ -101,18 +105,29 @@ The following are the two SAP Environment variables:
101
105
102
106

103
107
104
-
6. Choose **Other type of secret** option under **Secret type**. Add two key-value pairs as **UserName and Password** and Paste the values copied from **Advanced Event Mesh Application**. Click on **Next**
108
+
6. Choose **Other type of secret** option under **Secret type**. Add two key-value pairs as **username and password** and Paste the values copied from **Advanced Event Mesh Application**. Click on **Next**
105
109
106
110

107
111
108
112
7. Fill the **Secret name** as **sapaem-credentials** and Click on **Next**, Click on **Next** and then click on **Store** to store the secret.
109
113
110
114

111
115
112
-
8. Click on the created secret and copy the Secret ARN value.
116
+
8. Click on the created secret and copy the Secret ARN value and use it in appConfig.json for **SAP_AEM_CREDENTIALS**.
113
117
114
118

115
119
120
+
### For SAP_AEM_REST_URL, follow the steps below.
121
+
122
+
1. Go to your Advanced Event Mesh Application, and from the **Connect** Tab, copy the **Secured REST Host**
123
+
124
+

125
+
126
+
2. You have previously created a topic subscription named `monitron/messages`
127
+
128
+

129
+
130
+
So, the **SAP_AEM_REST_URL** is `Secured_REST_Host`/monitron/messages
116
131
117
132
So your `appConfig.json` file looks as shown below: Fill all the details by following the steps mentioned above.
118
133
@@ -129,9 +144,8 @@ So your `appConfig.json` file looks as shown below: Fill all the details by foll
0 commit comments