markkvdb / aws-lambda-idempotency

Small sample application to introduce idempotency to AWS Lambda functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aws-lambda-idempotency

This project showcases how to introduce idempotency to AWS lambda handlers by using a DynamoDB table. Most of the hard work is done by Powertools for AWS Lambda and Serverless.

Quick-start

Make sure that NPM and Poetry are installed on your system. Next, clone this repository and install the necessary node packages via npm install.

Deploy this project using Serverless with

sls deploy

Notes

  • The TableName property of the defined DynamoDB table needs to match the one referenced in app.py. This could be improved by introducing an environment variable taken from the serverless file.

About

Small sample application to introduce idempotency to AWS Lambda functions

License:MIT License


Languages

Language:Python 100.0%