Basic template for using AWS CDK (Java version) in a Kotlin Gradle project
Find a file
2022-12-31 17:43:16 +00:00
annotations Some progress on routing. Better understands routes, can handle parameterized routes. Routes are now made up from components. 2022-07-17 09:32:52 +01:00
gradle/wrapper Initial commit of template for creating AWS CDK (JVM) Cloudformation stacks using Kotlin and Gradle 2022-07-11 21:26:39 +01:00
Lambda Some progress on routing. Better understands routes, can handle parameterized routes. Routes are now made up from components. 2022-07-17 09:32:52 +01:00
src/main/kotlin/org/liamjd/aws/cdk Some progress on routing. Better understands routes, can handle parameterized routes. Routes are now made up from components. 2022-07-17 09:32:52 +01:00
.gitignore Formatting fixes, general tidy up 2022-07-11 21:55:42 +01:00
build.gradle.kts Version number bump. Can't remember how to use this. 2022-12-31 17:43:16 +00:00
cdk.json Initial commit of template for creating AWS CDK (JVM) Cloudformation stacks using Kotlin and Gradle 2022-07-11 21:26:39 +01:00
gradle.properties Initial commit of template for creating AWS CDK (JVM) Cloudformation stacks using Kotlin and Gradle 2022-07-11 21:26:39 +01:00
gradlew Initial commit of template for creating AWS CDK (JVM) Cloudformation stacks using Kotlin and Gradle 2022-07-11 21:26:39 +01:00
gradlew.bat Initial commit of template for creating AWS CDK (JVM) Cloudformation stacks using Kotlin and Gradle 2022-07-11 21:26:39 +01:00
README.md Version number bump. Can't remember how to use this. 2022-12-31 17:43:16 +00:00
settings.gradle.kts Some progress on routing. Better understands routes, can handle parameterized routes. Routes are now made up from components. 2022-07-17 09:32:52 +01:00

Kotlin Gradle CDK Template

When using the AWS CDK example projects, all the samples are written in Java and built using maven. This template provides a starter project for writing in Kotlin, and building with gradle instead.

The project is split into two components - the main project, which holds the AWS Stack, and a submodule, which contains a very basic Lambda function.

The gradle run task is configured to be dependent on the shadowJar task of the Lambda submodule, so that the Lambda is always recompiled before the CDK synthesis takes place (as cdk synth builds and executes the main project class).

As this relies on AWS CDK, you must have node installed.