AWS DynamoDB Streams to Lambda Tutorial in Python | Step by Step Guide

preview_player
Показать описание
DynamoDB Streams are a powerful feature that allow applications to respond to change on your table's records. Combining this feature with Lambda functions creates a highly scalable and fault tolerant application that can easily respond to record modification. In this video, I show you how to create a Lambda function and define a handler function (in python) that will respond to DynamoDB change events. From there, I define a required IAM role and attach it to the Lambda Function. Afterwards, I create a DynamoDB table and hook up the Lambda trigger. I test the connectivity by making manual updates on my DynamoDB table and confirm the Lambda function is responding appropriately.

📚 MY RECOMMENDED READING LIST FOR SOFTWARE DEVELOPERS📚

🎙 MY RECORDING EQUIPMENT 🎙

💻 MY DESKTOP EQUIPMENT 💻
 

📚 References / Resources:

☁Topics covered include:
- Lambda Function Creation
- Lambda handler using python
- Lambda DynamoDB Streams IAM role
- DynamoDB Table Setup
- DynamoDB Streams
- DynamoDB NewImage
- DynamoDB OldImage
- DynamoDB Stream "Change" Events
- Lambda Cloudwatch Monitoring

🌎 Find me here:

#DynamoDB
#DynamoDBStreams
#Lambda
#AWS
#Serverless
Рекомендации по теме
Комментарии
Автор

You are amazing and extremely intelligent, how come I never found your channel before.
Why did you stop posting new videos?
You could very easily be an inspiration my friend for millions of people out there seeking knowledge

malikahmed
Автор

This is one of the best video tutorial for integrating Dynamo Streams and Lambda. Thank you.

anandakella
Автор

Thanks again. Your videos are much better than the official AWS documentation

ViniciusPachecoDev
Автор

I love you man. This video was so easy to follow and I was able to made my own implementation at the first try. Thanks for everything!

GuitarreroDaniel
Автор

Thanks for the useful video! it's a gem in the forest of low quality tutorials! I've a topic suggestion: connecting Lambda to RDS, not only covering the code, but also the VPC challenge and thinking about request limitations and handling the risk of lambda functions choking non-serverless services like RDS. Thanks again!

lopper
Автор

Loved the way u have explained the topic with example.

Ckbagchi
Автор

Thanks, A lot,
Really it is the most helpful video I've found in youtube for AWS Lambda

mahmoudebada
Автор

Nice, Man! I was able to learn in few minutes! Thk!

SamuelSantana
Автор

would be interested, if you also show the handling when lambda failed to execute and send message to DLQ

ting-yuhsu
Автор

Clean and to the point... nicely done!!

rickfarina
Автор

great video but need to turn on DynamoDB stream to see the trigger option

PoliceCK
Автор

Awesome!. Your videos are really very helpful.. Appreciate the efforts in making this video

harjos
Автор

How'd you get the test templates you have there on the right at 7:10?

infinteuniverse
Автор

This video was dope and helped me alot with something Im doing for work, many thanks!!!

cipher
Автор

Excellent very usful video but i have a question when you said left side we have references insert on our DynamoDB table so this reference code is made by us only and where we are keeping it please help!!

soniauppal
Автор

Great explanation. Thank you very much!

JesusAlfredoHernandezOrozco
Автор

Simple and Great explanation .

I have a question, when you created DynamoDB table streams option was disabled.
If we keep streams option disabled, still stream events will be passed to lambda?

gauravawasthi
Автор

Useful video! How can I achieve this requirement?

Collect and store information regarding creation and deletion of S3
buckets and also creation and termination of EC2 instances in the AWS account


1. Create a CloudWatch Rule to listen to the below AWS services event sources and event types:


a) S3 - Create and Delete bucket operations
b) EC2 - Create and terminate instance states


2. The CloudWatch rule from #1 should trigger a Lambda function, the lambda function
should parse the event to log the following details about the event in a DynamoDB table:


Hint: Use AWS SDK for Python (boto3) to store the information in DynamoDB table.


a) Event time
b) Event source
c) Event name
d) Resource name (Bucket name or instance ID)
e) AWS region
f) Username

priyankapatel
Автор

I love your videos. They have helped me better understand a number of AWS concepts.

Do you use Terraform to manage your infrastructure as code? If so, have you considered doing a Terraform series?

jongschneider
Автор

Terrific series. Could you do a series on S53

joeaabb
welcome to shbcf.ru