4

How to trigger the lambda function only for INSERT event in dynamodb stream?

To reduce the cost of the lambda function, is it possible to trigger the lambda function based on the type of operation

  1. INSERT - insert_lambda_function
  2. MODIFY - update_lambda_function
  3. REMOVE - delete_lambda_function
Thirumal
  • 8,280
  • 11
  • 53
  • 103
  • 1
    You would need to put code at the start of the Lambda function to determine whether or not to process the message. The function can then exit very quickly, probably only costing 100ms of usage. – John Rotenstein Oct 02 '20 at 03:36

1 Answers1

4

No, this is not currently possible.

jellycsc
  • 10,904
  • 2
  • 15
  • 32