# cdk-patterns/serverless

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.

Repository: https://github.com/cdk-patterns/serverless
Canonical: https://ross.abutalabs.com/products/serverless
Homepage: https://cdkpatterns.com
Language: TypeScript
License: MIT
License Family: permissive
Topics: serverless, cdk, aws, lambda-functions, dynamodb, stepfunctions, eventbridge, sqs, cloudformation, typescript, python, appsync, graphql, sns, aws-cdk, lambda-destinations
Last push: 2024-01-30T06:00:03+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2425, "days_push": 946, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2352, forks 269 (observed 2026-08-28T04:06:40.394239+00:00)

## What it is
An open-source collection of AWS serverless architecture patterns implemented with AWS CDK, available in both TypeScript and Python with exported CloudFormation templates. It includes a CLI (cdkp) for scaffolding individual patterns and provides unit tests and Well-Architected learnings for each pattern.

## Use cases
- find aws cdk serverless architecture patterns
- scaffold a serverless project template with cdk
- learn event-driven aws architectures like eventbridge and step functions
- generate cloudformation templates from cdk patterns
- learn aws cdk through real examples
- bootstrap a lambda api project with dynamodb

## When to choose
- you build on AWS serverless (Lambda, DynamoDB, EventBridge, Step Functions) and want proven architecture starting points
- you want the same pattern in TypeScript or Python CDK with unit tests
- you want vanilla CloudFormation output alongside CDK code

## When to avoid
- you target non-AWS clouds or container-based serverless
- you need a production framework rather than reference patterns to copy
- you need Python lambda implementations - some patterns reuse JS lambdas

## Facets
- artifact type: learning-resource
- maturity: active
- function: infrastructure-as-code, serverless, developer-tools, documentation
- domain: cloud-computing, infrastructure-as-code, developer-tools, tutorials
- platform: cloud, python, cli
- tags: aws-cdk, serverless-patterns, cloudformation, lambda, architecture-patterns, event-driven-architecture, nodejs, typescript

## Member repositories
- cdk-patterns/serverless (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:40.394239+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:36:30.764521+00:00, confidence not recorded.
  - readme: https://github.com/cdk-patterns/serverless (fetched 2026-08-28T04:06:40.394239+00:00, sha df81b04843ed)
  - homepage: https://cdkpatterns.com (fetched 2026-08-29T10:17:33.262742+00:00, sha 3a4d22509e3a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
