From the course: Complete Guide to Serverless Web App Development on AWS

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Building your first project with AWS CDK

Building your first project with AWS CDK

- [Instructor] Now that you have your computer and AWS account ready, it's time to create your first project using AWS CDK. In this step, you create a new CDK project. A CDK project should be in its own directory with its own local module dependencies. So we'll start from starting directory of our choice and create a new directory named hello-cdk. So let's make that directory, and then let's get into the directory. From here, we can initialize a new CDK project using the CDK CLI tool. For that, we are going to use the command cdk init, and we need to specify the app and then the language that we want to work with. I will be using typescript. The CDK init command creates a structure of files and folders within the hello-cdk directory to help organize the source code for our application. This structure of files and folder is called your CDK project. So now, it's ready, and we can get into it. Let's take a moment to explore the project. During the project initialization, the CDK CLI…

Contents