DynamoDBLambdaMonitor
DynamoDBLambdaMonitor copied to clipboard
Use DynamoDb cloud watch events?
Hi,
CloudWatchZvenrs was launched a few days ago and it allows to trigger a lambda function based on metrics. Maybe that is a better way to do rather than using the scheduled invoke?
Also as I suspect cloud watch events send the table name, the Lambda could be rewrite to work with any Dynamodb tables, not only a specified one :)
:+1:
After checking CloudWatch Event it seems that it does not support that yet.
However, maybe that a better way instead of polling would be to:
- Create a SNS topic (by default DynamoDB creates one).
- All CloudWatch events are configured to send message to the topic:

Of course it would requires changes to the Lambda as it would need to be able to work with multiple tables (but maybe this Lambda could itself requires the creation of a DynamoDB tables that would keep track of how many times a specific table was updated in a day).