This project is a complete Serverless CRUD API built using AWS SAM (Serverless Application Model), Node.js, and DynamoDB. It's designed for learning and demo purposes, showcasing how to build, test, and deploy a serverless backend on AWS.
- Create, Read, Update, Delete (CRUD) APIs
- Powered by AWS Lambda, API Gateway, and DynamoDB
- Local testing with
sam local
- Deployed using
sam deploy --guided
.
├── src/ # Lambda function handlers
├── events/ # Sample event payloads for testing
├── template.yaml # SAM template to define AWS infrastructure
sam build
sam deploy --guided
You’ll be prompted to enter:
- Stack name (e.g.,
crud-dynamo-app
) - Region
- Permission to create IAM roles
- Save config for future runs
sam local invoke putItemFunction --event events/event-post-item.json
sam local invoke getAllItemsFunction --event events/event-get-all-items.json
sam local start-api # run local dev server at http://localhost:3000/
✅ Done!
This project was successfully built and deployed using AWS SAM, showcasing a functional CRUD API with DynamoDB and Lambda.