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.
cdk init --list
can be used to view a list of the available templates
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With