Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda Kinesis EventSourceMapping filters match if any record in the batch matches #10716

Open
1 task done
freddieforsythfs opened this issue Apr 24, 2024 · 1 comment
Open
1 task done
Labels
aws:lambda AWS Lambda status: backlog Triaged but not yet being worked on type: bug Bug report

Comments

@freddieforsythfs
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When the lambda kinesis event source mapping has a filter pattern applied, all records in the batch are delivered to the Lambda if a single message from the batch matches the filter condition.

Note this is a bug here (it should be filteredRecords)

Expected Behavior

Only filtered records from the batch are delivered to the lambda.

How are you starting LocalStack?

With a docker-compose file

Steps To Reproduce

Start LocalStack
Create a Lambda
Create a Kinesis Stream
Create an Event Source Mapping between the Lambda and the Kinesis with a filter in the JSON path
Publish 3 events, only one of which has the JSON path associated with the filter
All events are delivered to the Lambda

Environment

- OS:
- LocalStack:

Anything else?

No response

@freddieforsythfs freddieforsythfs added status: triage needed Requires evaluation by maintainers type: bug Bug report labels Apr 24, 2024
@localstack-bot
Copy link
Collaborator

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.

@viren-nadkarni viren-nadkarni added aws:lambda AWS Lambda status: backlog Triaged but not yet being worked on and removed status: triage needed Requires evaluation by maintainers labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:lambda AWS Lambda status: backlog Triaged but not yet being worked on type: bug Bug report
Projects
None yet
Development

No branches or pull requests

3 participants