Home icon

Invoke AWS Lambda functions from cross-account Amazon Kinesis Data Streams

Big Data Blog



This article discusses how to invoke AWS Lambda functions from cross-account Amazon Kinesis Data Streams using resource-based policies and the enhanced fan-out feature.

Specifically, the article covers:

  • Solution overview: Deploying Kinesis Data Streams in Account 1 and Lambda as the consumer in Account 2 to receive data from the data stream.
  • Prerequisites: Having two AWS accounts and the required permissions, along with the AWS CLI installed.
  • Launching three CloudFormation templates: 1) Creating a Kinesis data stream and enhanced fan-out consumer in Account 1, 2) Creating a Lambda function and execution role in Account 2, 3) Creating a Lambda event source mapping in Account 2.
  • Validating the solution: Sending sample messages to the data stream in Account 1 and verifying that the Lambda function in Account 2 receives the messages.
  • Clean up: Deleting the CloudFormation stacks in both accounts to avoid additional costs.


Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Feb 9
2026
Simplify cross-account stream processing with AWS Lambda and Amazon DynamoDB
Jan 15
2026
AWS Lambda announces cross-account access for DynamoDB Streams
Jan 17
2023
Build highly available streams with Amazon Kinesis Data Streams
Sep 10
2025
Build a streaming data mesh using Amazon Kinesis Data Streams

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.