Step 1: Create a DynamoDB Table With a Stream Enabled
In this step, you will create a new DynamoDB table with a stream enabled. Later in this walkthrough, you will create a Lambda function that will be triggered by changes to the DynamoDB table.
Open the DynamoDB console at https://console.aws.amazon.com/dynamodb/.
Choose Create Table.
In the Create DynamoDB table screen, do the following:
In the Table name field, type
StreamsLambdaTable. (This is the name of the table that we will use in this walkthrough.)
For the Primary key, in the Partition key field, type
Id. Set the data type to String.
When the settings are as you want them, choose Create.
In the list of tables, choose
In the Overview tab, choose Manage Stream, and then do the following:
For View Type, choose New and old images.
You now have a DynamoDB table with a stream enabled.