From the course: Hands-On Development in AWS

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Understanding streams and triggers

Understanding streams and triggers

- In this lesson, I'm going to give a demonstration of creating streams and triggers on a DynamoDB table. Let's go to the DynamoDB service, and we will create a table. Table is going to be called trigger demo. Partition key name will be ID, and we'll add a sort key of name. Default settings are fine for this, and create table. We'll wait for this table to be active. Trigger demo. And we are going to go to Exports and Streams, and we are going to enable the stream. I want to stream both new and old images. And the stream has been created. You'll notice there are no triggers associated with this stream. A trigger would be a Lambda function that would be called whenever data is added to or modified in the database. Let's head over to Lambda. I have no Lambda functions currently created. I will create a Lambda function using a blueprint. There is a DynamoDB blueprint, DynamoDB. Node.js DynamoDB process updates made to a DDB table. We will select that and hit Configure. Trigger, let's say…

Contents