Welcome to your CDK Java project!
It is a Gradle-based project, so you can open this directory with any Gradle-compatible Java IDE, and you should be able to build and run tests from your IDE.
You should explore the contents of this template. It demonstrates a CDK app with two instances of
a stack (HelloStack
) which also uses a user-defined construct (HelloConstruct
).
The cdk.json
file tells the CDK Toolkit how to execute your app. It uses a script called app.sh
to do that. Note that this script expects a fully contained jar to be built, which is created by
gradlew jar
https://github.com/awslabs/aws-cdk
npm i -g aws-cdk
./gradlew build
compile and run tests./gradlew jar
build jar file, required by cdkcdk ls
list all stacks in the appcdk synth
emits the synthesized CloudFormation templatecdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk docs
open CDK documentation
https://awslabs.github.io/aws-cdk/getting-started.html
Enjoy!