DEV Community

David Kljajo
David Kljajo

Posted on

AWS Serverless API Project Plan 2

AWS Serverless API Project Plan
🎯 Goal

Convert your existing API into a fully serverless backend using:

AWS Lambda
Amazon API Gateway
Amazon DynamoDB
AWS IAM

Deploy using:

AWS SAM or Serverless Framework
πŸ“… Week 3 β€” Foundations + First Serverless API

  1. Learn (Day 1–2)

Focus only on what you need:

What is AWS Lambda (event-driven functions)
How API Gateway routes HTTP requests
DynamoDB basics (tables, items, keys)
IAM roles (what permissions Lambda needs)

πŸ‘‰ Key understanding:

API Gateway β†’ triggers Lambda β†’ reads/writes DynamoDB

  1. Setup AWS Environment (Day 2) Create AWS account (if not already) Install: AWS CLI Node.js or Python runtime AWS SAM CLI (recommended) Configure CLI: aws configure
  2. Build First Minimal Serverless API (Day 3–4) Create: 1 Lambda function: helloAPI 1 API Gateway route: GET /hello Flow:

Client β†’ API Gateway β†’ Lambda β†’ Response

Outcome:

You successfully deploy your first serverless endpoint.

  1. Add DynamoDB (Day 5) Create table:

Example:

Table: Users
Partition key: userId
Update Lambda:
Write a simple item into DynamoDB
Return stored data
πŸ“… Week 4 β€” Full CRUD Serverless API

  1. Build Full CRUD API (Day 1–3)

Create endpoints:

Method Route Action
POST /users Create user
GET /users/{id} Get user
PUT /users/{id} Update user
DELETE /users/{id} Delete user

Each endpoint = Lambda function OR single Lambda with routing logic.

  1. IAM Roles (Day 3–4)

Give Lambda permissions:

Read/write DynamoDB
Basic execution logs (CloudWatch)

Learn:

Least privilege principle (only required permissions)

  1. Deploy Using SAM or Serverless Framework (Day 4–5) Option A: AWS SAM (recommended) template.yaml sam build sam deploy Option B: Serverless Framework serverless.yml serverless deploy
  2. Testing + Debugging (Day 5)

Test with:

Postman / Insomnia
AWS logs (CloudWatch)

Fix:

Permission errors
API route issues
DynamoDB key mismatches
🧠 Final Outcome (What you should be able to say)

After completing this phase, you can confidently say:

β€œI build and deploy serverless APIs on AWS using Lambda, API Gateway, and DynamoDB with proper IAM roles and infrastructure-as-code tools like SAM.”

Top comments (0)