AWS CDK with TypeScript: infrastructure you can review

Define AWS infrastructure in TypeScript with CDK v2, test it with assertions, check it with cdk-nag and deploy it safely through a pipeline

8 ratings 1,120 students Sample

Created by Mateo Silva

  • Updated September 2026
  • English
  • Intermediate

What you will learn

  • Create, synthesise, diff and deploy CDK v2 applications in TypeScript
  • Choose between L1, L2 and L3 constructs and write your own
  • Organise an application into stacks and environments without fragile references
  • Test infrastructure with assertions and catch risky changes in review
  • Enforce security rules with cdk-nag and Aspects
  • Deploy through CDK Pipelines with approvals between environments

Course content

6 sections, 25 lessons, 4h 1m total

CDK fundamentals 5 lessons · 44 min
  • Video: How CDK turns code into CloudFormation Preview 9 min
  • Article: Project setup and the core commands Preview 11 min
  • Article: Construct levels: L1, L2 and L3 10 min
  • Article: Reading a diff like a reviewer 9 min
  • Quiz: Check your understanding 5 min
Building the service 4 lessons · 43 min
  • Video: A VPC with sensible defaults 10 min
  • Video: Containers on ECS Fargate behind a load balancer 13 min
  • Article: A PostgreSQL database on RDS 11 min
  • Video: A queue and a background worker 9 min
Structuring larger applications 4 lessons · 40 min
  • Video: Splitting into stacks 10 min
  • Article: Cross stack references and their traps 10 min
  • Video: Configuration per environment 9 min
  • Video: Writing your own constructs 11 min
Testing infrastructure 4 lessons · 39 min
  • Article: Fine grained assertions 11 min
  • Video: Snapshot tests and when to use them 8 min
  • Video: Protecting logical ids of stateful resources 9 min
  • Article: Validating with cdk-nag and Aspects 11 min
Serverless pieces with CDK 3 lessons · 27 min
  • Video: Lambda functions with NodejsFunction 10 min
  • Video: Scheduled jobs and event rules 8 min
  • Article: HTTP APIs in front of functions 9 min
Delivery and operations 5 lessons · 48 min
  • Video: Monitoring constructs: alarms and dashboards 10 min
  • Video: CDK Pipelines with approvals 13 min
  • Article: Deploying from GitHub Actions instead 10 min
  • Video: Upgrades, drift and teardown 9 min
  • Quiz: Final check 6 min

Requirements

  • Basic TypeScript or JavaScript
  • Working knowledge of AWS services such as IAM, VPC and S3
  • Node.js LTS and the AWS CLI installed

Description

The AWS Cloud Development Kit lets you define infrastructure in a real programming language and deploy it through CloudFormation. That brings loops, types, functions and package management to infrastructure. It also brings the risk of clever code nobody can review. This course teaches CDK with a focus on infrastructure that a teammate can read, test and approve.

What we build

A small but complete service: a VPC, a containerised API on ECS Fargate behind a load balancer, a PostgreSQL database on RDS, a queue with a worker, alarms and dashboards. We grow it from one stack to several, add tests and policy checks, and finish with a self mutating pipeline that deploys to two environments.

  • Constructs at three levels and when to use each
  • Stacks, environments, context and cross stack references
  • Fine grained assertion tests and snapshot tests
  • Security checks with cdk-nag and Aspects
  • Reusable constructs published as a package for your team
  • CDK Pipelines with approvals between environments

Prerequisites and tools

You should know basic TypeScript and have used AWS before. We use CDK v2 with the aws-cdk-lib package, Node.js LTS and the AWS CLI. Everything is deployed into your own account, and we tear down every stack at the end.

Who this course is for

  • Developers who own the infrastructure for their services
  • DevOps engineers moving from raw CloudFormation or click ops
  • Teams standardising how they define AWS resources

Instructor

Mateo Silva

Builds serverless and Kubernetes platforms on AWS. Teaches Lambda, CDK and Helm with real projects

  • 4.4 instructor rating
  • 21 reviews
  • 4,470 students
  • 3 courses
  • Sample

I am a platform engineer who moves between two worlds: serverless applications on AWS Lambda and container platforms on Kubernetes. Teams usually need both, and I teach the trade offs honestly.

Each of my courses is built around one project that grows from a single file to something you could hand to a team: an HTTP API, a CDK app with tests, a Helm chart with sane defaults. I care about the parts tutorials skip, such as permissions, configuration per environment, rollbacks and cost.

I write infrastructure in TypeScript and YAML most days and I will show you the mistakes I made so you can skip them.

View profile

Student reviews

4.4 8 ratings
5 star 50%
4 star 38%
3 star 13%
2 star 0%
1 star 0%
Zainab Y. Sep 30, 2026
Sample

Reviewable infrastructure indeed

The title is accurate. Everything in this course is about making infrastructure changes safe to approve.

Theo B. Sep 18, 2026
Sample

The diff review lesson is essential

Reading diffs in three passes is now how our whole team reviews infrastructure pull requests.

Katarzyna W. Aug 31, 2026
Sample

Clear explanation of construct levels

I finally understand when to use L1, L2 and L3 and what an escape hatch really does.

Sakura I. Aug 12, 2026
Sample

Testing section is excellent

Assertions plus the logical id test caught a database replacement in our project before it reached production.

Anton S. Jul 24, 2026
Sample

cdk-nag integration is useful

We now fail builds on new nag findings. Clear guidance on writing suppression reasons.

Diego A. Jun 29, 2026
Sample

Great structure, ECS heavy

Very good course. Most examples use ECS, which suited me, but Lambda users may want more.

Musa A. May 17, 2026
Sample

Practical pipeline lessons

Comparing CDK Pipelines with GitHub Actions helped us choose. The cross stack reference trap lesson saved me a headache.

Holly G. Apr 21, 2026
Sample

Good, needs TypeScript comfort

Content is accurate, but my TypeScript was rusty and some lessons felt fast.

$59.99 Enroll now
SampleSample catalog: the instructors, courses, reviews and stats on this site are demo content.