除了 sample-app,还有哪些 CDK 模板?
What are other CDK templates besides sample-app?
在学习 AWS CDK 时,我调用了 'cdk init' 以使用默认示例应用程序模板创建一个新项目。还有哪些其他模板 and/or 它们位于何处?
$ 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 GitHub source code 上找到其他模板。
用法:
cdk init --language LANGUAGE [TEMPLATE]
其中:
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.
可用模板:app \ lib \ sample-app
cdk init --list
可用于查看可用模板列表
截至目前只有 3 个模板可用
可用模板:
- app:CDK 应用程序模板
└─ cdk init app --language=[csharp|fsharp|go|java|javascript|python|typescript]
- lib:CDK 构造库的模板
└─ cdk init lib --language=typescript
- sample-app:具有某些构造的示例 CDK 应用程序
└─ cdk init sample-app --language=[csharp|fsharp|go|java|javascript|python|typescript]
在学习 AWS CDK 时,我调用了 'cdk init' 以使用默认示例应用程序模板创建一个新项目。还有哪些其他模板 and/or 它们位于何处?
$ 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 GitHub source code 上找到其他模板。
用法:
cdk init --language LANGUAGE [TEMPLATE]
其中:
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.
可用模板:app \ lib \ sample-app
cdk init --list
可用于查看可用模板列表
截至目前只有 3 个模板可用 可用模板:
- app:CDK 应用程序模板 └─ cdk init app --language=[csharp|fsharp|go|java|javascript|python|typescript]
- lib:CDK 构造库的模板 └─ cdk init lib --language=typescript
- sample-app:具有某些构造的示例 CDK 应用程序 └─ cdk init sample-app --language=[csharp|fsharp|go|java|javascript|python|typescript]