Sravanthi Gudidevini
Sravanthi Gudidevini

Reputation: 19

Can DynamoDB updates trigger a Lambda function in another region?

I have a lambda function "mylambda" in region A and my dynamodb tables are in region B. Now I want to create dynamodb trigger in "mylambda" function. I cannot see any dynamodb tables in my lambda console as they both are in different regions. How can I achieve this? Any help would be appreciated

Upvotes: 1

Views: 1137

Answers (1)

ShengHow95
ShengHow95

Reputation: 246

DynamoDB Streams is region-based. Therefore, it is not possible for DynamoDB Streams to trigger a cross-region Lambda function.

However, there are alternatives:

  1. DynamoDB Table A in Region A with a configured DynamoDB stream that triggers Lambda A. Then Lambda A can perform cross-region client API Calls (e.g. using boto3 in python) to either SQS, SNS, EventBridge or even directly to your Lambda B in Region B.

  2. Using a DynamoDB Global Table with Cross Region Replication.

Upvotes: 2

Related Questions