Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Files

Latest commit

 

History

History
47 lines (34 loc) · 1.36 KB

01-install-aws-cloud-development-kit-cdk-and-create-a-new-project.md

File metadata and controls

47 lines (34 loc) · 1.36 KB

Install AWS Cloud Development Kit (CDK) and create a new project

📹 Video

We'll start by installing the AWS Cloud Development Kit.

  • npm install -g aws-cdk

-g stands for global (meaning that once installed, this package will be available anywhere on your computer)

👍 Throughout the course, Tomasz will use both yarn and npm package mangers, and it's really up to you to decide which one to use, as both work fine.

Verify thatcdk was installed.

  • cdk --version

Initialize a new cdk project.

  • cdk init
* sample-app: Example CDK Application with some constructs
   └─ cdk init sample-app --language=[csharp|fsharp|java|javascript|python|typescript]

We are going to choose the sample app, typescript template:

  • cdk init sample-app --language=typescript

This will create a bunch of files with the following directory structure (note that I'm displaying files just one level deep here):

.
├── .git
├── .gitignore
├── .npmignore
├── README.md
├── bin
├── cdk.json
├── jest.config.js
├── lib
├── node_modules
├── package-lock.json
├── package.json
├── test
└── tsconfig.json

👍 You can run tree -la 1 to display the tree.