Getting Started with AWS Solutions Constructs - AWS Solutions Constructs

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.

Note

AWS Solutions Constructs is supported on AWS CDK versions ≥ 1.46.0.

Tip

Want to dig deeper? Try the CDK Workshop for a more in-depth tour of a real-world project.

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 and AWS Solutions Constructs are developed in TypeScript and run on Node.js. The bindings for other supported languages use this backend and toolset.

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 Python >= 3.6
TypeScript TypeScript TypeScript >= 2.7

                  Java
                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.

  1. Create the app directory.

  2. Initialize the app.

  3. Add the AWS Solutions Constructs pattern dependencies.

  4. Add additional code to the app.

  5. Compile the app, if necessary.

  6. Deploy the resources defined in the app.

  7. Test the app.

If there are any issues, loop through modify, compile (if necessary), deploy, and test again.