mvn clean install
To run the Lambda locally without deploying to AWS, use these steps:
- Install the Serverless Framework’s Open Source CLI.
- Invoke the Lambda functions locally as follows:
sls invoke local --function errorInterpreter --path samples/sample1.json --verbose
- To run the commands with remote debugging enabled, run the following before the
sls invoke local
command:export JAVA_TOOL_OPTIONS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE"
- Install the AWS Command Line Interface.
- Run
aws configure
and enter your AWS account details. - Deploy the Lambda using
sls deploy
.