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.
AWS CDK prerequisites
Complete all prerequisites before getting started with the AWS Cloud Development Kit (AWS CDK).
Sign up for an AWS account
To get started with AWS, you need an AWS account. For information about creating an AWS account, see Getting started with an AWS account in the AWS Account Management Reference Guide.
Install and configure the AWS CLI
When you develop AWS CDK applications on your local machine, you will use the AWS Cloud Development Kit (AWS CDK) Command Line Interface (CLI) to interact with AWS, such as deploying applications to provision your AWS resources. To interact with AWS outside of the AWS Management Console, you must configure security credentials on your local machine. To do this, we recommend that you install and use the AWS Command Line Interface (AWS CLI).
For instructions on installing the AWS CLI, see Install or update to the latest version of the AWS CLI in the AWS Command Line Interface User Guide.
How you configure security credentials will depend on how you or your organization manages users. For instructions, see Authentication and access credentials in the AWS Command Line Interface User Guide.
After installing and configuring the AWS CLI, you should have the following:
-
The AWS CLI installed on your local machine.
-
Credentials configured in a
configon your local machine using the AWS CLI.
Install Node.js and programming language prerequisites
All AWS CDK developers, regardless of the supported programming language that you will use, require Node.js
For more information on supported Node.js versions, see Supported Node versions.
Other programming language prerequisites depend on the language that you will use to develop AWS CDK applications:
Example
Third-party language deprecation
Each language version is only supported until it is EOL (End Of Life) and is subject to change with prior notice.
Next steps
To get started with the AWS CDK, see Getting started with the AWS CDK.