Skip to content

ojackson08/aws-serverless-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Serverless REST API

License: MIT AWS Security Maintained by Merkaba AI Risk

Fully serverless, highly scalable, and secure CRUD API architecture.


Overview

A production-grade serverless REST API built with API Gateway, Lambda, and DynamoDB. Provisioned entirely via Terraform, this architecture scales automatically to handle millions of requests while remaining highly cost-effective ($0 at idle).

From a security perspective, this repository serves as a hardened baseline for deploying API endpoints, implementing least-privilege IAM, request validation, and secure data persistence.


Architecture

Client Request (HTTPS)
    │
    ▼
Amazon API Gateway (Authentication, WAF, Request Validation)
    │
    ▼
AWS Lambda (Business Logic)
    │
    ▼
Amazon DynamoDB (Encrypted at Rest)

Security Properties

Property Implementation
Request Validation API Gateway models drop malformed requests before Lambda invocation
Authentication Support for IAM, Cognito, or custom Lambda authorizers
Data Security DynamoDB tables use AWS KMS encryption at rest
Least Privilege Lambda execution roles are restricted to specific DynamoDB table ARNs

Case Study / Usage Notes

Deployment at Merkaba AI Risk Management:

This architecture is used as the secure foundation for the agentledger and hermes-agent-memory-vault services. By utilizing API Gateway's native request validation, we successfully mitigated a series of automated fuzzing attacks during a red team exercise, as the malformed payloads were dropped at the edge without ever consuming Lambda compute time.


Integration with Merkaba Security Stack


License

MIT License — see LICENSE for details.


Contact

Merkaba AI Risk Management security@merkabacreatives.org https://merkabacreatives.org/ai-risk

About

Fully serverless CRUD API built with API Gateway + Lambda (Python) + DynamoDB, provisioned entirely via Terraform. $0 at idle, scales to millions of requests, up to 80% cheaper than traditional backends.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors