On 11/22/2023, Kinesis Data Streams launched support for cross-account access with AWS Lambda using resource-based policies. With resource-based policy, customers can specify AWS accounts, IAM users, or IAM roles and the exact Kinesis Data Streams actions for which they want to grant access. Once access is granted, customers can configure a Lambda function in another account to start processing the data stream. To get started and learn more click here.
Hi AWS-User-2408 after adding the resource-based policies. How it will work? I have assumed some working scenario for the below following cases for the above policies: Case 1: Can a kinesis stream from A account with invoke the lambda function from B account automatically when event is published to kinesis streams? Case 2: Or we can have Event bridge on top B account lambda which will read the data from A account kinesis on certain intervals?
My goal is to achieve this use cases : Some events will get published to kinesis stream in A account, once the event got published kinesis must trigger the lambda from B account. Also please confirm whether I can achieve my use case or not?
Hi Bhuvi, Once you add a resource-based policy on Kinesis Data Stream Sharing Tab, you are required to add Kinesis as Lambda Trigger in the lambda account(You'll need to add the ARN of kinesis stream. If you're adding in the console, paste the ARN into the search box and continue to save it. Since it is in a different account, the drop down list won't have the Kinesis Stream Name. You can validate your integration by sending new messages into the Kinesis Stream via CLI commands. You. should notice invocations on the lambda given the CW logs are appropriately configured.
Relevant content
- asked 10 months ago
- asked 23 days ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago