This is a simple lambda function that makes use of the AWS CDK to deploy. This is an example project that can be built upon.
├── application # Directory which holds the application code
├── buildSrc # The common gradle conventions for the project
├── gradle # Gradle Wrapper
└── infrastructure # Infrastructure Code
./gradlew shadowJar
First the CDK needs to be bootstrapped
cd infrastructure && cdk bootsrtap
If you run synth you can make sure that a cloudformation template can be generated.
cd infrastructure && cdk synth && cd ..
To deploy the application run cdk deploy
cd infrastructure && cdk deploy && cd ..