Vote count: 0 My company manages AWS using a multi-account system. I have a lambda function in account A and a DynamoDB table with a Stream enabled in account B. I want the stream events to trigger my function. When I run: aws lambda create-event-source-mapping --event-source-a a:aws:dynamodb:us-east-1:877563841310:table/table/stream/2016-08-09T23:00:46.852 --function-name Lambda-qa --enabled --batch-size 10 --starting-position TRIM_HORIZON I get the following error: An error occurred (InvalidParameterValueException) when calling the CreateEventSourceMapping operation: Role and event source must be in the same account as the cloud function Looks like the Lambda function and DynamoDB stream h...
ادامه مطلب