Working with the AWS CDK
The AWS Cloud Development Kit (AWS CDK) lets you define your AWS cloud infrastructure in a general-purpose programming language. Currently, the AWS CDK supports TypeScript, JavaScript, Python, Java, and C#. It is also possible to use other JVM and .NET languages, though we are unable to provide support for every such language.
We develop the AWS CDK in TypeScript and use JSII
AWS CDK prerequisites
To use the AWS CDK, you need an AWS account and a corresponding access key. If you
don't
have an AWS account yet, see Create and Activate an AWS Account
If you have the AWS CLI
aws configure
All AWS CDK applications require Node.js 10.13 or later, even if you work in Python,
Java, or
C#. You may download a compatible version at nodejs.org
After installing Node.js, install the AWS CDK Toolkit (the cdk
command):
npm install -g aws-cdk
If you get a permission error, and have administrator access on your system, try
sudo npm install -g aws-cdk
.
Test the installation by issuing cdk --version
.
The specific language you work in also has its own prerequisites, described in the corresponding topic listed here.
Topics