Skip to content
Branch: master
Find file History
skinny85 and rix0rrr fix: CDK General Availability (1.0.0) updates (#76)
Also build all examples in the PR build.
Latest commit d1e63af Jul 12, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src fix: CDK General Availability (1.0.0) updates (#76) Jul 12, 2019 minor wording changes May 25, 2019
cdk.json Add Java version of the Lambda Cron example (#39) May 19, 2019
pom.xml fix: CDK General Availability (1.0.0) updates (#76) Jul 12, 2019

CDK Java Example

This is an example of a CDK program written in Java.


To build this app, run mvn compile. This will download the required dependencies to compile the Java code.

You can use your IDE to write code and unit tests, but you will need to use the CDK toolkit if you wish to synthesize/deploy stacks.

CDK Toolkit

The cdk.json file in the root of this repository includes instructions for the CDK toolkit on how to execute this program.

Specifically, it will tell the toolkit to use the mvn exec:java command as the entry point of your application. After changing your Java code, you will be able to run the CDK toolkit commands as usual (Maven will recompile as needed):

$ cdk ls
<list all stacks in this program>

$ cdk synth
<cloudformation template>

$ cdk deploy
<deploy stack to your account>

$ cdk diff
<diff against deployed stack>
You can’t perform that action at this time.