You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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
The text was updated successfully, but these errors were encountered:
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.
Is there an existing issue for this?
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
)localstack/localstack/services/lambda_/event_source_listeners/stream_event_source_listener.py
Line 242 in 2cd0ef6
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
Anything else?
No response
The text was updated successfully, but these errors were encountered: