Streaming events from Kinesis Data Stream in account A to Kinesis Data Firehose in account B

0

Hello all,

I have a Kinesis Data Stream in account A, and I need to stream the events from it to Kinesis Firehose in account B. From what I see, there is no direct integration (even using IAM roles with assume role policy).

Is it possible to use EventBridge pipes to do the following:

KDS (Account A) -> EventBridge pipe (Account A) -> KFS (Account B)

UPDATE

  1. Account A can not directly write to targets in Account B.
  2. Lambda might be to costly
  3. Can EventBridge Pipes be used here?
已提問 7 個月前檢視次數 493 次
2 個答案
1

Hi,

As you have observed, it's not possible to set a Kinesis Delivery Stream to consume from a Kinesis Data Stream in a different account. I believe a similar constraint would prevent the Event Bridge Pipes method.

To keep the serverless approach, you can use AWS Lambda to consume and process from the data stream, as native integration is provided that handles polling, checkpointing etc. You may find this blog useful - https://aws.amazon.com/blogs/big-data/best-practices-for-consuming-amazon-kinesis-data-streams-using-aws-lambda/

There is also the option to deploy the Kinesis Data Firehose in Account A and deliver to a target in Account B, for an example walkthrough of this, see https://repost.aws/knowledge-center/kinesis-firehose-cross-account-streaming

Hope that helps!

AWS
專家
Greg K
已回答 7 個月前
profile picture
專家
已審閱 1 個月前
0

Hello,

Yes, there is no direct integration, but, couple of things can be done - write a lambda function in Account A listening for updates on the Stream and then write to Firehose in Account B (via cross account assume role). OR If Account A can directly write to Account B S3 bucket (if that is the end goal) then that is also simpler.

You may also want to check this link for more insights - https://docs.aws.amazon.com/managed-flink/latest/java/examples-cross.html

AWS
已回答 7 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南