How dkgit2/image-resizing-project-on-aws works
This repository defines a serverless image-thumbnail pipeline: a user uploads an image to S3, an upload event invokes Lambda, and the image is resized, stored in a destination bucket, and announced through SNS email. The graph preserves those documented stages and the Lambda execution permissions. Relationships are documented in the README; no source excerpts were available to verify implementation details beyond it.
Main entry points: CreateThumbnail.zip Thumbnail handler · s3-bucket.tf Source bucket · iam-policy.tf Access policy · lambda-function.tf AWS Lambda
Components 9
Image storage
- Source bucket
s3-bucket.tf - Destination bucket
s3-bucket.tf
Image processing
- AWS Lambda
lambda-function.tf - Thumbnail handler
CreateThumbnail.zip
Notifications and access
- SNS topic
sns-topic.tf - Lambda execution role
iam-role.tf - Access policy
iam-policy.tf
Other components
- Image uploader
- Email subscriber
Connections 11
- Image uploader → Source bucket: uploads image
README.md - Source bucket → AWS Lambda: triggers on upload
README.md - AWS Lambda → Thumbnail handler: runs handler
README.md - Thumbnail handler → Source bucket: downloads original
README.md - Thumbnail handler → Destination bucket: stores thumbnail
README.md - Thumbnail handler → SNS topic: publishes result
README.md - SNS topic → Email subscriber: sends notification
README.md - AWS Lambda → Lambda execution role: uses role
README.md - Access policy → Source bucket: grants read access
README.md - Access policy → Destination bucket: grants write access
README.md - Access policy → SNS topic: grants publish access
README.md