AWS S3 File Upload + AWS Lambda Trigger (Python Tutorial)

Avatar admin | December 10, 2020 3 Views 0 Likes 0 Ratings

3 Views 0 Ratings Rate it

This video will show you how to trigger a python lambda function when an object is created on your S3 bucket, when this happen, the lambda function will identify the file extension, if it is an exe file it will get removed from your bucket.

You can get more details on CloudWatch logs for troubleshooting.

S3 is an easy to use all purpose data store. Frequently we use it to dump large amounts of data for later analysis. Using S3 Put events with Lambda, we can shift this process to an event driven architecture. In this video, I show you how to set up a S3 Put Event Trigger that invokes a lambda function every time a file is added to your s3 bucket. This allows for event driven processing and other neat applications!

Hope you find it useful, if the mood strike hit that like button.👍👍👍

===============
Table of Contents:
===============

00:00 – Introduction
00:00 – Intro
00:11 – Creating a role for a lambda function
00:56 – Creating an S3 bucket
01:30 – Creating a lambda function
02:14 – Python lambda function code example
03:08 – Event notification for lambda from s3
03:33 – Bucket policy for lambda
05:26 – Uploading a text file
05:47 – Uploading an exe file
06:22 – Lambda events on CloudWatch
06:45 – Blog post URL

=========
Subscribe
=========

🔥 Don’t miss any future video! hit that subscribe button


3 Views 0 Ratings Rate it

Written by admin