Skip to main content
This page contains links to tutorials, example projects in every supported language, explanatory videos, and other resources to help you learn to create and manage CDK Terrain (CDKTN) applications.

Tutorials

Follow these hands-on tutorials:

Example Projects

The Terraform Registry and OpenTofu Registry have more information about all of the providers in the following examples.

Typescript

Backends

Each CDK Terrain project can specify a backend that defines where and how Terraform operations are performed, where Terraform state snapshots are stored, etc.

Python

Java

Gradle

Maven

C Sharp

Go

Youtube Playlist

Release demos

Pocket public codebase

Mozilla Pocket is a widely used application for managing reading lists that is built into the Firefox browser. Like many Mozilla projects, Pocket is open source, and the CDK Terrain codebase that Pocket uses to manage infrastructure for the recommendation API is also public and open source. Pocket’s codebase provides a great example of how to lay out a CDK Terrain project. In order to re-use components, Pocket’s codebase is separated out into a set of reusable modules. These are then used from CDK Terrain code in the recommendation-api codebase. The recommended reading order is to:
  1. Read Pocket/recommendation-api/.aws/src/main.ts.
  2. Look at the constructs used that are defined in the Pocket/terraform-modules repository, such as PocketALBApplication.
  3. Look at the “base” constructs, which are are used in the higher-level constructs in the previous step.