finds.dev← search

// the find

cdk-patterns/serverless

★ 2,348 · TypeScript · MIT · updated Jan 2024

This is intended to be a repo containing all of the official AWS Serverless architecture patterns built with CDK for developers to use. All patterns come in Typescript and Python with the exported CloudFormation also included.

A collection of ~25 AWS serverless architecture patterns implemented with AWS CDK, covering everything from a basic Lambda+API Gateway setup to circuit breakers, saga step functions, and EventBridge ETL pipelines. Available in TypeScript and Python, each pattern includes architecture diagrams and exported CloudFormation. Aimed at developers who want a working starting point rather than having to wire services together from scratch.

TypeScript patterns all include unit tests using CDK assertions, which means you can verify resource configuration before touching AWS. The pattern range is genuinely useful — saga step functions, Lambda destinations, RDS Proxy, and circuit breakers are things people actually get wrong the first time. Architecture diagrams accompany every pattern, so you can evaluate fit before reading code. The `npx cdkp init` CLI makes extracting a single pattern fast, avoiding the need to clone the whole repo.

Last commit was January 2024 and many patterns almost certainly target CDK v1, which hit end-of-life in June 2023 — you'll hit deprecated APIs or need to port before using any of this in a real project. Python versions explicitly reuse the TypeScript Lambda functions rather than writing native Python handlers, which the README itself flags as a known shortcut that was never fully cleaned up. No tests for Python patterns at all. The patterns show basic wiring but skip production concerns: IAM roles are typically overly permissive, there's no error handling in the Lambda code, and observability beyond the dedicated CloudWatch pattern is absent.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →