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: README.md
+26-12Lines changed: 26 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
1
2
# Near-Real Time Usage Anomaly Detection using OpenSearch
2
3
3
4
Detecting usage anomalies promptly is crucial because they can result in unforeseen charges. The Near-Real Time Usage Anomaly Detection solutions offers the capabilities to address this issue effectively.
@@ -37,7 +38,7 @@ The primary components of the solution's architecture are:
37
38
- OpenSearch Dashboards access enabled by user authentication through the OpenSearchUser Cognito.
38
39
39
40
## Pre-requisites
40
-
-[AWS Cloud Development Kit](https://docs.aws.amazon.com/cdk/v2/guide/home.html) version 2.69 or higher.
41
+
-[AWS Cloud Development Kit](https://docs.aws.amazon.com/cdk/v2/guide/home.html) version 2.100.0.
41
42
- All required libraries installed using python pip. Below commands are run locally from the root of the repository.
42
43
43
44
```
@@ -47,24 +48,37 @@ The primary components of the solution's architecture are:
47
48
The above commands will also download the python libraries for the lambda layer.
This will create CloudTrail trail and ingest the trails to the provided OpenSearch domain. It will also create the anomaly detectors in the provided domain.
75
+
For setting up the access IAM role, please check [existing_domain_deploy](./existing_domain_deploy.md) guide.
62
76
63
77
> NOTE: The IAM roles use AWS ManagedPolicies for various cases like lambdaExecution, etc. If required, please update to use self managed policies.
64
78
65
79
You can set the context to disable Lambda logging with the trail by setting: `--context enable-lambda-trail=false`. This will skip the Lambda Anomaly detector creation.
66
80
67
-
Furthermore, please examine the notification subscription confirmation email delivered to `<your-alert-mailing-list@email.com>` and confirm your subscription in order to obtain alert emails.
81
+
Furthermore, please examine the notification subscription confirmation email delivered to `<alert_email>` and confirm your subscription in order to obtain alert emails.
68
82
69
83
## Usage
70
84
Once the deployment process concludes, the output from the CDK stack offers essential links for utilizing the solution.
@@ -107,4 +121,4 @@ See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more inform
107
121
108
122
## License
109
123
110
-
This library is licensed under the MIT-0 License. See the LICENSE file.
124
+
This library is licensed under the MIT-0 License. See the [LICENSE](LICENSE) file.
## Usage Anomaly Detection Deployment on existing OpenSearch Domain
2
+
3
+
For deploying the solution to an existing OpenSearch domain, provide an IAM role with permissions to access the domain and basic AWS Lambda execution permissions.
4
+
Please follow below steps for creating the role and setting permissions:
5
+
1. Create role and add AWS Lambda execution permissions:
0 commit comments