AWS CDK - the simple guide

Install the AWS CDK Toolkit

pip install aws-cdk

Create new project directory

mkdir cdk-workshop && cd cdk-workshop

Create a CDK project

cdk init app-name --language python

Constructs

Define your stacks using constructs within your CDK code

CDK deploy app

Deploy your stacks into your AWS account

cdk deploy

CDK diff

cdk diff

CDK Sync

Generate CloudFormation templates from your code

CDK Watch

CDK Watch

CDK Pipelines

(coming soon)

Testing Constructs

(Coming soon)