AWS Bootcamp - Q4 - Deploy Event Driven architecture using AWS Lambda and S3

Deploy Event Driven architecture using AWS Lambda, S3 bucket

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

Event Driven architecture using AWS Lambda and S3Objectives

  1. Understand what is meant by Event Driven architecture and how it compares with Rest API based architectures

  2. Understand the basics of AWS Lambda, S3 events

  3. 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

  1. Create the source and destination S3 buckets

  2. Create new Lambda function using S3 as the event trigger

  3. Update the code in the repository to use proper S3 buckets and deploy the lambda function.

  4. Setup S3 lifecycle policy in source S3 bucket

  5. Make sure you have proper policy setup so that S3 events can trigger lambda function

  6. Upload a new image to source S3 bucket and validate that thumbnail is created in destination bucket.

  7. 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

Want to discuss about DevOps practices, Infrastructure Audits or Free consulting for your AWS Cloud?

Prasanna would be glad to jump into a call
Loading...