Menu

1 / 4

Build a Serverless Notes API on AWS with Lambda, API Gateway and DynamoDB

DEV Community: dynamodb·Nii Yartey Gidiglo·1 day ago
#QRjhBbo1
#devtodynamodb#devto#dev#name#region
Long article (1339 words) — no AI summary yet.
Reading 0:00
15s threshold

A question I hear a lot from people getting started with AWS is: "What's the simplest real-world thing I can build to understand serverless?"

My answer is always the same: a small REST API . It touches the three services you'll use in almost every serverless project: AWS Lambda for compute, Amazon API Gateway for HTTP, and Amazon DynamoDB for storage. And it costs next to nothing to run.

In this post I'm building a Notes API from scratch with the AWS CLI, testing it with curl , checking it in the AWS Console, and then tearing it all down so it doesn't cost a cent.

What I'm building

Client (curl / browser) │ HTTPS ▼ Amazon API Gateway (HTTP API) │ Lambda proxy integration ▼ AWS Lambda (Python 3.12, arm64) │ boto3 ▼ Amazon DynamoDB (on-demand table)

Enter fullscreen mode

Exit fullscreen mode

Method Path What it does

POST /notes Create a note

GET /notes List all notes

GET /notes/{id} Get one note

DELETE /notes/{id} Delete a note

Prerequisites: an AWS account, the AWS CLI v2 configured ( aws…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.