Skip to content

Basic example REST API using AWS lambda, layers, http API GW, and dynamodb. Uses AWS lambda powertools as a microframework, and mkdocs for docs. Deployed via CDK.

Notifications You must be signed in to change notification settings

rbogle/example_api_lambda_powertools

Repository files navigation

Lambda-DynamoDB based API with AWS lambda powertools

This is a example project for an AWS serverless API deployed with CDK and written in python.

It uses:

  • lambdas for integration with http api gateway, see api and refs/api
  • lambda layers to manage dependencies, see layers
  • dynamodb for persistence, see refs/models
  • dynamodb streams to generate api triggered change events, see refs/events
  • cdk to deploy the infrastructure, see deploy
  • standard mkdocs static docs generator, see docs
  • mkdocstrings plugin to generate documentation from the source files.

Configuration

You will need to have a .env file created in the root of this project to properly configure and deploy the stacks, see config for details on the variables exported and used.

Setup and deployment instructions

You can use the included makefile to quickly setup the environment, test and deploy the environment, see deploy for instructions on setup and deployment and the makefile for details the make targets available.

About

Basic example REST API using AWS lambda, layers, http API GW, and dynamodb. Uses AWS lambda powertools as a microframework, and mkdocs for docs. Deployed via CDK.

Topics

Resources

Stars

Watchers

Forks