EventBridge + Kinesis

1

We're trying to send an event to EventBridge after a producer publishes to a Kinesis Data Stream. We then want to configure EventBridge api destination to send event to Salesforce and create a platform event.

Kinesis -> EventBridge-> Rule+ Bus + Api Destination-> Salesforce

  1. We first thought that we can setup a rule on EventBridge so that certain kinesis events based on filtering criteria can be routed to an event bus. We were unsuccessful to find any kinesis events routed to EventBridge. **Do we need an additional layer between Kinesis and EventBridge? **

  2. We then tried lambda based approach. Wrote a lambda with Kinesis as trigger and EventBridge as destination. While we saw lambda function getting executed but destination never gets invoked. On further research it seems that on success destination isn't supported on a lambda where Kinesis is configured as trigger. Can someone confirm this?

Looking for some guidance on if pattern 1 and pattern 2 are at all feasible and any pointers on implementation.

4개 답변
0
수락된 답변
  1. Yes, you will need some compute such as a Lambda function. The function will get the records from Kinesis and write them to EventBridge.
  2. You are correct, Lambda destinations are only available for asynchronous invocation and Kinesis is not asynchronous (it is called Event source mapping). You should write code in the function that iterates over the records in the payload and sends them to the bus using the EventBridge API.

Your architecture should look like: Kinesis -> Lambda -> EventBridge -> API Destination -> Salesforce.

profile pictureAWS
전문가
Uri
답변함 2년 전
0

Thank you Uri. That did it. Added code in lambda to push event to EventBridge. Thanks for the help.

답변함 2년 전
0

A new solution without the need of a lambda is the new eventbridge pipes. It has support to Kinesis Data Streams as source and EventBridge bus as target.

Good luck

답변함 일 년 전
0

Now eventbridge directly supports Kinesis data streams as source. Here is an example: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes-kinesis.html

abhisht
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠