Getting Started with AWS Solutions Constructs
This topic describes how to install and configure AWS Cloud Development Kit (AWS CDK), AWS Solutions Constructs, and create your first AWS CDK app using AWS Solutions Constructs patterns.
Tip
Want to dig deeper? Try the
CDK Workshop
Tip
For more information about getting started with the AWS Cloud Development Kit (AWS CDK), refer to the AWS CDK Developer Guide.
Prerequisites
AWS Solutions Constructs is built upon the AWS CDK, so
you need to install Node.js (>= 10.3.0), even those working in
languages other than TypeScript or JavaScript. This is because the
AWS CDK
You must provide your credentials and an AWS Region to use the AWS CDK CLI, as described in Specifying Your Credentials and Region.
Other prerequisites depend on your development language, as follows.
Language | Prerequisites |
---|---|
Python | Python >= 3.6 |
TypeScript | TypeScript >= 2.7 |
Java | Java >= 1.8 |
Installing the AWS CDK
To install and configure the AWS CDK, please refer to the AWS CDK Developer Guide - Installing the AWS CDK.
Working with AWS Solutions Constructs
The typical workflow for creating a new app when working with AWS Solutions Constructs follows the same approach as the AWS CDK.
-
Create the app directory.
-
Initialize the app.
-
Add the AWS Solutions Constructs pattern dependencies.
-
Add additional code to the app.
-
Compile the app, if necessary.
-
Deploy the resources defined in the app.
-
Test the app.
If there are any issues, loop through modify, compile (if necessary), deploy, and test again.