I want to use a self-hosted (in EC2 instance) Kafka stream to use as an event source to trigger the lambda function. Although lamda can easily be configured(here) to get triggered from a Kafka stream, I don't want to trigger for all the messages but for only a few conditions.
We can use pattern matching in Eventbridge but can we use self-hosted Kafka as a source there? If yes, then how?