1

I have multiple dynamo db tables in same AWS account, They all have streams enable on them. Can a single lambda function listen to multiple streams?

2
  • Hey did you figure out the answer to this question? Commented Aug 10, 2017 at 21:40
  • No, I did not. I ended up not using the lambda at all. Commented Aug 11, 2017 at 9:18

1 Answer 1

3
  1. Go to your function
  2. Under the Triggers section Click on Add Trigger.
  3. A new dialog will pop up, Click on the shaded box.
  4. Search for DynamoDB and Select it.
  5. Select your DynamoDB table name
  6. Set the Batch size to 1
  7. Set the Starting position Latest
  8. Make sure you click on the Enable Trigger
  9. Click Submit.

Redo the same thing from step 2 till step 9 but select a different table name.

  1. Save your changes Make sure Lambda has a correct role. ( you can click on the Test button and see the result)

Now if you insert on any of your tables you should see lambda will get invoke (Check the cloud watch)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.