Reputation: 785
Scenario:
Problem:
We need to invoke the Lambda which is in Region 2 using the S3 event notification which is generated in Region 1. We are aware that cross account S3 event configuration with Lambda is allowed. But how to implement cross Region event and lambda invocation!
What we are thinking:
We thought of using SNS in between S3 and Lambda, but not sure if there is any other alternative available or is this the only way. Any help is appreciated.
Upvotes: 1
Views: 3438
Reputation: 25779
As you say, the most straightforward approach is use SNS in the middle:
S3 cannot send notifications directly cross-region.
You could also have S3 replicate the created items to Region2, at which point Region2 S3 can directly notify the Region2 Lambda, which may work if the items are small and latency not a big problem.
Upvotes: 2