In this fourth task, you are going to deploy Event Driven Architecture to create thumbnail from Images that are uploaded to S3 bucket.
Python Code to create thumbnail from Image -
Difficulty Level - Intermediate
Days to complete - 3 days
Architecture
Objectives
Understand what is meant by Event Driven architecture and how it compares with Rest API based architectures
Understand the basics of AWS Lambda, S3 events
Understand the S3 lifecycle policy and remove the older images (> 7 days) automatically.
AWS Services / Technologies
Event-Driven Architecture | AWS Lambda |
AWS S3 | S3 Lifecycle policy |
IAM Policy | Python |
High level Tasks
Create the source and destination S3 buckets
Create new Lambda function using S3 as the event trigger
Update the code in the repository to use proper S3 buckets and deploy the lambda function.
Setup S3 lifecycle policy in source S3 bucket
Make sure you have proper policy setup so that S3 events can trigger lambda function
Upload a new image to source S3 bucket and validate that thumbnail is created in destination bucket.
Access the Lambda logs to verify that thumbnail creation is actually logged.
Reference material
You can use any reference - AI, AWS Docs, Youtube videos. But the objective is you should able to complete the task and should able to explain what you did clearly.
Basics of AWS Lambda & serverless architecture
Video Solution
Coming Soon
Share this post