【文件属性】:
文件名称:cdk-hello-world:CDK Hello World示例项目
文件大小:99KB
文件格式:ZIP
更新时间:2021-04-13 01:30:09
TypeScript
cdk-hello-world
架构图
分步指南
引导程序
让我们开始创建一个全新的CDK堆栈。
创建一个新文件夹: mkdir cdk-hello-world
跳转到文件夹: cd cdk-hello-world
初始化CDK项目: npx cdk init app --language typescript
将CDK更新到最新版本: npm i @aws-cdk/core@latest @aws-cdk/assert@latest aws-cdk@latest
转到文件bin/cdk-hello-world.ts并在堆栈中添加前缀或后缀,例如:
#!/usr/bin/env node
import "source-map-support/register" ;
import * as cdk from "@aws-cdk/core" ;
import { CdkHelloW
【文件预览】:
cdk-hello-world-main
----src()
--------listNotes.ts(281B)
--------putNote.ts(548B)
----lib()
--------cdk-hello-world-stack.ts(2KB)
----.npmignore(65B)
----tsconfig.json(598B)
----test()
--------cdk-hello-world.test.ts(435B)
----jest.config.js(130B)
----README.md(10KB)
----cdk.json(449B)
----docs()
--------architecture.png(13KB)
----.gitignore(93B)
----bin()
--------cdk-hello-world.ts(242B)
----package-lock.json(294KB)
----package.json(838B)