My company manages AWS using a multi-account system. I have a lambda function in account A and a DynamoDB table with the stream enabled in account B. I want stream events to fire my function.
When I run:
aws lambda create-event-source-mapping --event-source-arn arn: aws: dynamodb: us-east-1: 101010101: table / table / stream / 2016-08-09T23: 00: 46.852 - function name Lambda -qa --enabled packet size 10 --starting-position TRIM_HORIZON
I get the following error: An error (InvalidParameterValueException) occurred while calling the CreateEventSourceMapping operation: the role and source of the event must be in the same account as the cloud function
It looks like the Lambda function and DynamoDB thread should be in the same account. But can the DynamoDB stream in accountA be read from accountB using other means? Redirection, SNS, SQS, S3 or user application.
source share