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).
Set up your AWS account
If you or your organization are new to AWS, you must set up your AWS account. This includes signing up for an AWS account, securing your root user, determining your method of managing users, and creating an administrative user. To manage users, you can use AWS Identity and Access Management (IAM) or AWS IAM Identity Center. We recommend that you use IAM Identity Center. For more information, see the following:
-
What is IAM? in the IAM User Guide.
-
What is IAM Identity Center? in the AWS IAM Identity Center User Guide.
After setting up an AWS account, you should have an administrative user and the ability to create and manage additional users using IAM or IAM Identity Center.
Before moving forward, we recommend that you take time to learn the recommended best practices in AWS Identity and Access Management. For more information, see Security best practices and use cases in AWS Identity and Access Management in the IAM User 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
config
on 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
Important
Node.js versions 13.0.0 through 13.6.0 are not compatible with the AWS CDK due to compatibility issues with its dependencies.
Other programming language prerequisites depend on the language that you will use to develop AWS CDK applications:
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.