How joosangkim/aws-sam works
Main Components
a) AWS Components:
• AWS Lambda Functions
• CloudFront Distribution
• API Gateway (implied by the Lambda setup)
• IAM Roles and Permissions
b) Application Components:
• Distribution Module
• Invalidation Module
• Events Handler
• Configuration Management
Client/Trigger → API Gateway → Lambda Functions → CloudFront
Specific Elements
• Blue: AWS Services (Lambda, CloudFront)
• Green: Application Modules
• Yellow: Configuration Files
• Gray: Event Triggers
b) Flow Directions:
Implementation Details
Tier 1 - External Interface:
[API Gateway] → [Lambda Function Container]
Tier 2 - Lambda Functions:
[Distribution Function] ↔ [Invalidation Function]
Tier 3 - Internal Components:
[distributions.py] [invalidation.py]
• ↑ ↑
[environments.json] [events.json]
Deployment process:
[Local Development] → [SAM CLI] → [AWS Cloud]
Remember to include:
• Error handling flows
• Configuration management
• Local development setup
• Deployment pipeline
This will give a comprehensive view of both the runtime architecture and the development/deployment process.