cdk init

In this step we will create a new CDK project from the sample-app template:

  1. Make a new directory named cdk-workshop and cd to it:

    mkdir cdk-workshop
    cd cdk-workshop
    

    Remember this directory name cdk-workshop. cdk uses this directory name to hard-code information about the CDK app/stack.

  2. [Optional] Check the available template that CDK init supports:

    cdk init --list
    

    alt text

  3. Use cdk init to create a new CDK project with the sample-app template in TypeScript:

    cdk init sample-app --language=typescript
    

    alt text