Get Started with AWS CDK

GETTING STARTED GUIDE

Module 1: Understand CDK Requirements

In this module, you will learn about prerequistes for running CDK

Introduction

To use CDK, you need to have a few prerequisites installed and configured. We will not be diving into the details of these in this guide, but reference existing guides or documentation on how to do that.

What You Will Learn

  • Setting up the AWS CLI
  • Choosing and installing an IDE
  • Ensure that you have the correct language framework ready

 Time to Complete

5 minutes

 Module Prereqs

  • AWS Account with administrator-level access**
  • Recommended browser: The latest version of Chrome or Firefox

[**]Accounts created within the past 24 hours might not yet have access to the services required for this tutorial.

Prerequisites

AWS Command Line Interface

In order for AWS CDK to interact with your AWS Account it needs credentials and the AWS CLI installed and configured. If you haven't done so, please follow the Setup Your Environment guide to set up the CLI on your workstation.

If you will be using AWS CDK on AWS Cloud9, the CLI should already be installed and configured.

Have an IDE available

One of the benefits for AWS CDK is that you can leverage your favorite development environment and have a rich experience when exploring the hundreds of different services and features of AWS.

We highly recommend you use an IDE that supports code-completion and syntax highlighting for your language of choice:

  • VSCode
  • AWS Cloud9
  • Atom
  • vim
  • emacs
  • WebStorm
  • PyCharm

Various language frameworks

Node.js

AWS CDK uses specific versions Node.js (>=10.13.0, except for version 13.0.0 - 13.6.0). A version in active long-term support (LTS) is recommended.

  • To install node.js, please folow the official instructions node.js website and follow the instructions for your given operating system.
  • If you already have node.js installed, verify which version you have by running:
node --version

Python

If you decide to use Python as your CDK language of choice, you will need to have Python installed. Specifically you will need Python 3.6 or later installed. You can find information on installing Python here.

Additionally you will need to have the Python Package Manager (pip) installed. See the installation instructions here.

.NET

For your .NET development with CDK you will need to have the .NET Code SDK installed. Specifically you will need version 3.1 or later. You can find information on installing and downloading .NET Core SDK here.

Java

If Java is your language of choice, you will need to have a JDK (Java Development Kit) installed. You need JDK 8 or later. You can find information about downloading and installing the Amazon Coretto 8 distribution here. Other JDK 8 distributions are available if you do not wish to use Amazon Coretto.

Conclusion

You are now ready to get started with the AWS CDK. It is recommended to use AWS Cloud9 for this guide as all the prerequisites have been installed.

Up Next: Install CDK CLI

Let us know how we did.

Thank you for your feedback
We're glad this page helped you. Would you like to share additional details to help us continue to improve?
Close
Thank you for your feedback
We're sorry this page didn't help you. Would you like to share additional details to help us continue to improve?
Close