ktor-server-lambda-core
is a proof of concept implementation of an ktor engine, which allows you to run your ktor module in AWS Lambda behind an API Gateway.
Basically, its just a mapping of API Gateway events to ktor request/response objects and vice versa.
In Maven add our core dependency:
<project>
...
<dependencies>
<dependency>
<groupId>com.mercateo</groupId>
<artifactId>ktor-server-lambda-core</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
</project>
Just write your ktor application as always and set the Lambda Handler to com.mercateo.ktor.server.lambda.LambdaAdapter::handle
.
After that the Lambda Engine will pickup your application and executes the call pipeline.
Please have a look at our sample for a compete guide how to use this library.