Link to this page: bit.ly/cdk-forge

The simplest way to deploy your first CDK demo:

  1. Login to your AWS account.

  2. Open CloudShell from the top right hand side of AWS Management (it already has cdk command line tool installed):

    Screenshot 2023-08-21 at 07.00.12.png

    Check if cdk tool is installed:

    $ cdk

  3. Bootstrap CDK environment (you need to do that only once per account, per region):

    $ cdk bootstrap aws://*ACCOUNT-NUMBER*/*REGION*

  4. Clone serverless repo:

    $ git clone https://github.com/aws-samples/serverless-patterns/ $ cd serverless-patterns/s3-lambda-dynamodb-cdk/cdk

  5. Install AWS Construct Library for our typescript demo (for different CDK apps written we will use a different package manager):

    $ npm install

  6. (Optional) Generate a CloudFormation template based on our CDK code:

    $ cdk synth

  7. Deploy a CDK app (with a single stack):

    $ cdk deploy

  8. Destroy the CDK app.

    $ cdk destroy

Video walkthrough of this setup:

https://youtu.be/1wh_ENU63M0

More details about this demo:

Serverless Land

What’s next?

More CDK examples/demos to play with:

Serverless Land