How arshyasharifian/aws_api_crud_template works
Main Components
a. Client Layer:
• External clients/users making API requests
• Custom domain (Route 53) integration
b. API Layer:
• API Gateway as the entry point
• Custom domain configuration
• REST endpoints (GET, PUT, POST, DELETE)
c. Compute Layer:
• Four Lambda functions (create, read, update, delete)
• Shared utilities package
d. Data Layer:
• DynamoDB table
• IAM roles and permissions
[Clients] → [DNS/Route 53] → [API Gateway] → [Lambda Functions] → [DynamoDB]
Key Relationships to Highlight
• Four distinct Lambda functions (create, get, put, delete) connecting to API Gateway
• Shared utils package being used by all Lambda functions
• IAM role connections between services
• Custom domain flow from Route 53 to API Gateway
Implementation Details
a. Technical specifications:
• Node.js runtime environment
• TypeScript implementation
• Terraform deployment flow
• Workspace separation (dev, stage, prod)
b. Annotations for:
• API endpoints
• Lambda function names
• DynamoDB table details
• IAM role specifications
Infrastructure as Code Layer
• Terraform configuration files
• Resource relationships
• Environment separation