Dynamo streams even remove

Hi,

Is there a way to trigger lambda when an item is removed from DynamoDb table. In my serverless.yml I have this event as such:

events:
  - stream:
      arn: ${self:provider.environment.server_list}
      type: dynamodb

When an item is removed from this dynamodb table, I want to trigger a lambda function that destroys the server. It only seems to work on any stream event. Can I only trigger only on a remove/delete stream event? Where may this be documented?

Thanks!

Gary

May I ask if there is any documentation for this? It seems the serverless is filled more with examples rather than details options. Thanks!

1 Like

The answer is no.