41
loading...
This website collects cookies to deliver better user experience
nvm install v14.14.0
nvm use v14.14.0
npm install -g aws-cdk
npm install -g typescript
➜ ~$ mkdir ping-me-cdk-example && cd $_
init
command specifying app
as the template and typescript
as the language:➜ ping-me-cdk-example$ cdk init app --language=typescript
Applying project template app for typescript
# Welcome to your CDK TypeScript project!
This is a blank project for TypeScript development with CDK.
The `cdk.json` file tells the CDK Toolkit how to execute your app.
## Useful commands
* `npm run build` compile typescript to js
* `npm run watch` watch for changes and compile
* `npm run test` perform the jest unit tests
* `cdk deploy` deploy this stack to your default AWS account/region
* `cdk diff` compare deployed stack with current state
* `cdk synth` emits the synthesized CloudFormation template
Executing npm install...
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
✅ All done!
ping-me-cdk-example # we're here
├── bin
│ └── ping-me-cdk-example.ts
├── lib
│ └── ping-me-cdk-example-stack.ts
├── node_modules
│ └── ... # Many, many subfolders here
├── test
│ └── ping-me-cdk-example.test.ts
├── .gitignore
├── .npmignore
├── cdk.json
├── jest.config.js
├── package-lock.json
├── package.json
├── README.md
└── tsconfig .json
ping-me-cdk-example/bin/ping-me-cdk-example.ts
file and the ping-me-cdk-example/lib
directory.ping-me-cdk-example/lib/ping-me-cdk-example-stack.ts
and ping-me-cdk-example/test/ping-me-cdk-example.test.ts
as they'd just get in the way:➜ ping-me-cdk-example$ rm lib/ping-me-cdk-example-stack.ts test/ping-me-cdk-example.test.ts
:> bin/ping-me-cdk-example.ts