Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elasticpath/osgi-error-interpreter
https://github.com/elasticpath/osgi-error-interpreter
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/elasticpath/osgi-error-interpreter
- Owner: elasticpath
- License: mit
- Created: 2023-12-29T19:33:20.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-21T16:24:16.000Z (9 months ago)
- Last Synced: 2024-04-16T11:08:37.095Z (8 months ago)
- Language: JavaScript
- Size: 104 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OSGi Error Interpreter Lambda
## Build
```bash
mvn clean install
```## Test Lambda locally
To run the Lambda locally without deploying to AWS, use these steps:
1. Install the [Serverless Framework’s Open Source CLI](https://www.serverless.com/framework/docs/getting-started/).
1. Invoke the Lambda functions locally as follows:
```bash
sls invoke local --function errorInterpreter --path samples/sample1.json --verbose
```
1. To run the commands with remote debugging enabled, run the following before the `sls invoke local` command:
```bash
export JAVA_TOOL_OPTIONS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE"
```## Deploy to AWS
1. Install the [AWS Command Line Interface](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html).
2. Run `aws configure` and enter your AWS account details.
3. Deploy the Lambda using `sls deploy`.