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.

License

Notifications You must be signed in to change notification settings

csantanaSnyk/lambda-kotlin-groovy-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 65.0%
  • Groovy 35.0%