View a markdown version of this page

AWS CDK prerequisites - 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.

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 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 22.x or later. All supported programming languages use the same backend, which runs on Node.js. We recommend a version in active long-term support.

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
TypeScript
  • TypeScript 3.8 or later (npm -g install typescript)

JavaScript
  • No additional requirements

Python
  • Python 3.9 or later including pip and virtualenv

Java
  • Java Development Kit (JDK) 8 (a.k.a. 1.8) or later

  • Apache Maven 3.5 or later

    Java IDE recommended (we use Eclipse` in some examples in this guide). IDE must be able to import Maven projects. Check to make sure that your project is set to use Java 1.8. Set the JAVA_HOME environment variable to the path where you have installed the JDK.

C#

.NET 8.0 or later.

Visual Studio 2019 (any edition) or Visual Studio Code recommended.

Go

Go 1.23 or later.

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.