Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Develop AWS CDK applications

Focus mode
Develop AWS CDK applications - AWS Cloud Development Kit (AWS CDK) v2

This is the AWS CDK v2 Developer Guide. The older CDK v1 entered maintenance on June 1, 2022 and ended support on June 1, 2023.

This is the AWS CDK v2 Developer Guide. The older CDK v1 entered maintenance on June 1, 2022 and ended support on June 1, 2023.

Manage your infrastructure on AWS by developing applications using the AWS Cloud Development Kit (AWS CDK).

Prerequisites

Before you can start developing applications, complete all set up steps in Getting started with the AWS CDK.

Developing AWS CDK applications overview

At a high-level, developing CDK applications involves the following steps:

  1. Create a CDK project – A CDK project consists of the files and folders that store and organize your CDK code.

  2. Create a CDK app – Within a CDK project, you use the App construct to define a CDK application.

  3. Create a CDK stack – Within the scope of your CDK app, you define one or more CDK stacks.

  4. Define your infrastructure – Within the scope of a CDK stack, you use constructs from the AWS Construct Library to define the AWS resources and properties that will become your infrastructure. Using a general-purpose programming language of your choice, you can use logic, such as conditional statements and loops, to define your infrastructure based on certain conditions.

Get started with developing CDK applications

To get started, you can use the AWS CDK Command Line Interface (AWS CDK CLI) cdk init command. Provide the --language option to specify the programming language to use. This command creates a starting CDK project and imports the main AWS Construct Library and core modules.

Import and use the AWS CDK Library

After you create a CDK project, import and use constructs from the AWS CDK Library to begin defining your infrastructure. For instructions, see Work with the AWS CDK library.

Next steps

When ready to deploy your application, use the CDK CLI cdk deploy command. For instructions, see Deploy AWS CDK applications.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.