Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@aws-cdk/aws-lambda-event-sources: Lambda event filtering

See original GitHub issue


Support the newly released event filtering feature for Amazon SQS, Amazon DynamoDB, and Amazon Kinesis.

Use Case

For filtering event source.

Proposed Solution

Add a filters to SqsEventSourceProps, KinesisEventSourceProps and DynamoEventSourceProps.

Other information

No response


  • I may be able to implement this feature request
  • This feature might incur a breaking change

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:58
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

zehsorcommented, Dec 10, 2021

As long as this issue is open: CloudFormation natively supports this. You can always write an escape hatch for that.

I wrote a blog post on how to do this for filtering lambda events.

@dgoetsch I think so. I really like your idea. However i think it should only be additionally given the amount of flexibility you have with all the possible filter criteria. Do you think cdk should also validate the filter json?

Dilskicommented, Jul 14, 2022

I can give this a go this week

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lambda event filtering - AWS Documentation
Use event filtering with a Lambda event source mapping to filter out stream and queue events to your Lambda function based on certain...
Read more >
Kirk Kirkconnell on Twitter: "Lambda's event filters are easily ...
Lambda's event filters are easily my favorite AWS feature released in the last year. So very useful!! If you are using DynamoDB streams...
Read more >
aws-cdk/aws-lambda-event-sources/ - UNPKG
The CDN for @aws-cdk/aws-lambda-event-sources. ... This library provides a uniform API for all Lambda event. 22, sources regardless of the underlying ...
Read more >
AWS Lambda Event Filtering - Towards AWS
AWS Lambda provides a feature to filter events that come from Amazon SQS, Amazon Kinesis, and Amazon DynamoDB. With this feature, Lambda only...
Read more >
@aws-cdk/aws-lambda-event-sources - Package Manager
@aws-cdk/aws-lambda-event-sources ... Event sources for AWS Lambda ... Lambda provides event source mappings for the following services.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found