This project makes it easier to reuse servlet code inside of AWS Lambda. It is based on the bleshik/aws-lambda-servlet public domain project.
We have fixed a few minor bugs in the original project related to case sensitivity. We also added annotation processing that creates the servlet wrapper class automatically.
-
Add the jitpack repo to the repositories section
maven { url 'https://jitpack.io' }
-
Add the dependency version (replace x.y.z with the appropriate version from the JitPack site)
def awsLambdaServlet = 'x.y.z'
-
Add the annotation processor and API to the dependencies section
annotationProcessor "com.github.aws-samples:aws-lambda-servlet:$awsLambdaServlet" api "com.github.aws-samples:aws-lambda-servlet:$awsLambdaServlet"
Yes, an example is coming in the IoT reference architectures repository soon!
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.