Menu
Amazon DynamoDB
Developer Guide (API Version 2012-08-10)

Step 3: Generate Activity in the DynamoDB Table

In this step, you will generate write activity in the DynamoDB table. This will cause new records to appear in that table's stream, which will in turn trigger execution of the Lambda function.

  1. Open the DynamoDB console at https://console.aws.amazon.com/dynamodb/.

  2. In the navigation pane, choose Tables.

  3. In the list of tables, choose StreamsLambdaTable.

  4. Choose the Items tab.

  5. Choose Create item and then do the following:

    • Type an Id key value of your choice, and add any additional attributes you want.

    • Choose Save.

    • In the confirmation window, choose OK.

    Repeat these steps at least two more times, in order to write more data items to the table.

  6. Choose one of the items from the StreamsLambdaTable. Choose Actions, and then choose Edit.

  7. In the Edit item window, and then do the following:

    • Choose the square button to the left of the Id attribute, and add at least one more attribute to the item.

    • Choose Save.

    Repeat these steps at least two more times, in order to update the items in the table.

  8. Choose one of the items from the StreamsLambdaTable. Choose Actions, and then choose Delete.

    In the confirmation window, choose Delete. This will remove the item from the table.

Step 4: View The Lambda Function Output in CloudWatch Logs