DEV Community

Discussion on: Filter Lambda Events from DynamoDB Stream (with CDK)

Collapse
 
wesleycheek profile image
Wesley Cheek • Edited

Great! Hope sometime soon there will be an easier way to do this.

By the way, for anyone hoping to filter for TTL deletions in DynamoDB, you can use this filter pattern:

{
    "Filters": [
        {
            "Pattern": json.dumps(
                {
                    "userIdentity": {
                        "type": ["Service"],
                        "principalId": ["dynamodb.amazonaws.com"],
                    }
                }
            )
        }
    ]
}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
dvddpl profile image
Davide de Paolis

thisthis is awesome. thanx