Examples
The examples repository is a monorepo of small, independent AWS CDK projects. Each project can be cloned, installed, tested, synthesized, deployed, and destroyed on its own.
The Getting Started guide is self-contained: it creates every file needed for its REST API and does not require cloning this repository. Use these examples when you want a complete project to inspect or run.
| Project | What you learn |
|---|---|
| quickstart-rest | A minimal default REST API with a decorated GET /hello Lambda handler, CDK tests, and the full local-to-deployment workflow. |
| Quickstart HTTP API | The corresponding API Gateway HTTP API, including the explicit ApiType.HTTP selection and the resources that differ from REST. |
| REST API with DynamoDB | A five-route REST API with one DynamoDB table, explicit per-handler grants, named registries, and independently configured Lambdas. |
| REST API with Cognito authorizer | A Cognito REST API with a default authorizer, an explicit public override, and two independent Lambdas grouped in one module. |
Common prerequisites
All three projects require:
- Python 3.10 or newer for the local CDK application.
- Node.js and the AWS CDK CLI.
- Docker, installed and running, to bundle the Lambda source during tests and
cdk synth. - AWS credentials only for
cdk bootstrap,cdk deploy, andcdk destroy.
Each project has its own requirements.txt, requirements-dev.txt, CDK app,
Lambda source, and tests. The catalog lists only projects that currently exist;
future projects can be added as additional pages and rows when they are ready.
See the examples repository on GitHub for the complete source and README for each project.