Get Started with AWS CDK
GETTING STARTED GUIDE
Module 1: Understand CDK Requirements
In this module, you will learn about prerequistes for running CDK
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
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:
- AWS Cloud9
Various language frameworks
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:
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.
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.
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.