← Projects

Serverless CRUD API — API Gateway + Lambda + DynamoDB

A fully serverless REST API where a single Python Lambda function handles create, read, update, delete, and list operations against a DynamoDB table — exposed publicly over HTTPS via API Gateway. No servers to manage, no idle costs, and the whole stack provisions in under two minutes from a CloudFormation template.

API Gateway receives HTTPS POST requests at /DynamoDBManager and invokes the Lambda function with the full request payload. The function inspects the operation field and routes to the appropriate DynamoDB call — create, read, update, delete, or scan.

  • API Gateway REST API with a single POST endpoint
  • Python Lambda function handling all five CRUD operations
  • DynamoDB table as the data store (on-demand capacity)
  • IAM execution role scoped to DynamoDB + CloudWatch Logs
  • CloudFormation template that provisions the full stack in one deploy

Architecture diagram

Architecture diagram: HTTP Client → HTTPS POST → API Gateway → invoke → Lambda → CRUD → DynamoDB