Skip to content
Sample code for the "Kotlin and Groovy JVM Languages with AWS Lambda" blog post. Shows how to deploy AWS Lambda functions using Kotlin and Groovy JVM languages.
Kotlin Groovy
Branch: master
Clone or download
Latest commit f8b05e9 Jan 23, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
groovy initial commit Jan 23, 2017
kotlin initial commit Jan 23, 2017
LICENSE Initial commit Jan 18, 2017
README.md initial commit Jan 23, 2017

README.md

lambda-kotlin-groovy-example

Sample code for the "Kotlin and Groovy JVM Languages with AWS Lambda" blog post. Shows how to deploy AWS Lambda functions using Kotlin and Groovy JVM languages.

Quick Start

Requirements

Before cloning and building these examples, you'll need to install the following dependencies:

Clone repo

Clone the Git repository

git clone https://github.com/awslabs/lambda-kotlin-groovy-example
cd lambda-kotlin-groovy-example

Build Groovy Lambda function

Execute the following commands to build the Groovy example AWS Lambda function. Note, this command uses Gradle (via the Gradle Wrapper) to download dependencies and build the fat JAR file containing the AWS Lambda function.

cd groovy
./gradlew shadowjar

Once Gradle finished. The fat JAR will be available at build/libs/jvmlangs-groovy-1.0-SNAPSHOT-all.jar. This JAR file can be deployed using AWS Lambda.

Build Kotlin Lambda function

Execute the following commands to build the Kotlin example AWS Lambda function. Note, this command uses Gradle (via the Gradle Wrapper) to download dependencies and build the fat JAR file containing the AWS Lambda function.

cd kotlin
./gradlew shadowjar

Once Gradle finished. The fat JAR will be available at build/libs/jvmlangs-kotlin-1.0-SNAPSHOT-all.jar. This JAR file can be deployed using AWS Lambda.

You can’t perform that action at this time.