How j0nathan-ll0yd/aws-cloudformation-media-downloader works
Main Components
a. Client-Side Components:
• iOS Mobile App (external component)
• Feedly Integration (external webhook source)
b. AWS Infrastructure Components:
• API Gateway (entry point for REST APIs)
• CloudFront (content delivery)
• Lambda Functions (serverless compute)
• S3 (file storage)
• DynamoDB (database)
• SNS/SQS (push notifications)
• Secrets Manager (credentials storage)
┌─ External Layer ─────────────────────────────────┐
• iOS App Feedly Webhook │
• ┬────────────────┬──────────────┘
┌─ API Layer ─────▼────────────────▼──────────────┐
• API Gateway │
• Custom Authorizer Lambda │
• ┬────────────────────────────────┘
┌─ Service Layer ─▼────────────────────────────────┐
• ┌─ File Management ─┐ ┌─ User Management ─┐ │
• StartFileUpload │ │ - RegisterUser │ │
• UploadPart │ │ - LoginUser │ │
• CompleteUpload │ │ - UserDelete │ │
• ListFiles │ │ - UserSubscribe │ │
• ┘ └─────────────────────┘ │
• ┌─ Notifications ───┐ ┌─ Device Management ─┐ │
• SendPushNotif │ │ - RegisterDevice │ │
• WebhookFeedly │ │ - PruneDevices │ │
• ┘ └─────────────────────┘ │
• ┬────────────────────────────────┘
┌─ Storage Layer ─▼────────────────────────────────┐
• S3 Buckets DynamoDB Tables │
• ┘
Important Flows to Highlight
a. Media Download Flow:
iOS App → API Gateway → StartFileUpload → S3 → CompleteFileUpload → DynamoDB
b. Push Notification Flow:
Feedly → WebhookFeedly → SNS → SendPushNotification → iOS App
c. User Authentication Flow:
iOS App → API Gateway → LoginUser → DynamoDB
Additional Elements
• Version/environment information
• Security boundaries and VPC if applicable
• Monitoring and logging flows
Implementation Notes
• Related Lambda functions together
• Scaling and redundancy where applicable
Remember to include the integration points with external services (APNS, Github, Feedly) while maintaining clarity about the security boundaries and authorization flows.