core

The library used for deploying AWS Lambda functions working with Ktor

License

License

GroupId

GroupId

com.mercateo
ArtifactId

ArtifactId

ktor-server-lambda-core
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

core
The library used for deploying AWS Lambda functions working with Ktor
Project Organization

Project Organization

Mercateo AG

Download ktor-server-lambda-core

How to add to project

<!-- https://jarcasting.com/artifacts/com.mercateo/ktor-server-lambda-core/ -->
<dependency>
    <groupId>com.mercateo</groupId>
    <artifactId>ktor-server-lambda-core</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.mercateo/ktor-server-lambda-core/
implementation 'com.mercateo:ktor-server-lambda-core:1.0.1'
// https://jarcasting.com/artifacts/com.mercateo/ktor-server-lambda-core/
implementation ("com.mercateo:ktor-server-lambda-core:1.0.1")
'com.mercateo:ktor-server-lambda-core:jar:1.0.1'
<dependency org="com.mercateo" name="ktor-server-lambda-core" rev="1.0.1">
  <artifact name="ktor-server-lambda-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.mercateo', module='ktor-server-lambda-core', version='1.0.1')
)
libraryDependencies += "com.mercateo" % "ktor-server-lambda-core" % "1.0.1"
[com.mercateo/ktor-server-lambda-core "1.0.1"]

Dependencies

compile (5)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.4.0
io.ktor : ktor-server-core jar 1.4.0
io.ktor : ktor-server-host-common jar 1.4.0
com.amazonaws : aws-lambda-java-core jar 1.2.0
com.amazonaws : aws-lambda-java-events jar 2.2.6

test (5)

Group / Artifact Type Version
io.ktor : ktor-server jar 1.4.0
io.ktor : ktor-server-tests jar 1.4.0
io.kotlintest : kotlintest-runner-junit5 jar 3.3.2
io.mockk : mockk jar 1.9.3
ch.qos.logback : logback-classic jar 1.2.1

Project Modules

There are no modules declared in this project.

ktor-server-lambda

Maven Central CircleCI

Purpose

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.

Installation

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>

Usage

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.

Versions

Version
1.0.1
1.0.0
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1