Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are other CDK templates besides sample-app?

Tags:

aws-cdk

As I am learning the AWS CDK I have invoked 'cdk init' to create a new project with the default sample-app template. What are other templates and/or where are they located?

 $ cdk init --help
 cdk init [TEMPLATE]

 Create a new, empty CDK project from a template. Invoked without TEMPLATE, the app template will be used.
like image 768
Stevko Avatar asked Apr 24 '20 05:04

Stevko


2 Answers

cdk init --list can be used to view a list of the available templates

like image 183
L Mo Avatar answered Sep 20 '22 02:09

L Mo


You can find the other templates on CDK GitHub source code.

Usage:

cdk init --language LANGUAGE [TEMPLATE]

Where:

LANGUAGE: is one of the supported programming languages: csharp (C#), java (Java), javascript (JavaScript), python (Python), or typescript (TypeScript)

TEMPLATE: is an optional template. If the desired template is app, the default, you may omit it.

Available templates: app \ lib \ sample-app

like image 26
Amit Baranes Avatar answered Sep 23 '22 02:09

Amit Baranes