Table of Content
You will need an IAM user with AdministratorAccess
permissions that you can login with to AWS Management Console.
If you haven’t create an IAM user, follow Create IAM Group and IAM User :: MANAGING ACCESS CONTROL WITH AWS IAM (IDENTITY AND ACCESS MANAGEMENT) to create one.
Run aws sts get-caller-identity
to verify it:
Your output may looks a little bit different than mine.
If you can’t run aws sts get-caller-identity
, follow Install AWS CLI :: GETTING STARTED WITH THE AWS CLI.
The AWS CDK uses Node.js 18 or later.
A version in active long-term support (LTS) (v22.x at this writing) is recommended.
After install Node.js, verify it works:
node --version
One of the benefits of the AWS CDK is that you can leverage your favorite development environments and have a rich experience when exploring the hundreds of different services and features of AWS.
You should use an IDE that supports code-completion and syntax highlighting for your language of choice.
Visual Studio Code (VSCode) - a free, open-source IDE - is a good choice.
The AWS Cloud Development Kit (AWS CDK) Command Line Interface (AWS CDK CLI), also known as the CDK Toolkit, is the primary tool for interacting with your AWS CDK app.
AWS CDK CLI is published as a npm package.
To install AWS CDK CLI, use npm
- the package manager for JavaScript library.
npm install -g aws-cdk
The package manager npm
comes with Node.js.
Verify AWS CDK CLI works as expected.
cdk --version