Welcome to your CDK Java project!
It is a Maven-based project, so you can open this directory with any Maven-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 local file called .classpath.txt
to exist. This file
is automatically created by mvn package
.
mvn package
compile and run testscdk 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
Enjoy!