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?
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则