-
Notifications
You must be signed in to change notification settings - Fork 8
Backend Documentation
goldy4719 edited this page Apr 10, 2026
·
6 revisions
This service provides a REST API for managing user-uploaded images. Metadata is stored in DynamoDB, while image files are stored in S3. The API generates presigned URLs to allow secure, temporary access to images.
- AWS Lambda function
-DynamoDB table:
- Partition key:
userId - Sort key:
imageId
- Partition key:
- S3 bucket for image storage
- API Gateway with JWT authorizer
- IAM permissions for DynamoDB and S3 operations
- API Gateway forwards requests to Lambda.
- Authentication middleware extracts the user ID from the JWT.
- Exception middleware standardizes all error responses.
- Route handlers process requests using DynamoDB and S3.
- Presigned URLs are generated when image access is required.
- Metadata and file storage are separated (DynamoDB vs S3).
- All endpoints require authentication.
- Presigned URLs prevent direct public access to S3.