I can create lambda trigger using S3- same region.
But while creating trigger using different region S3 getting error
The bucket imebuckt must be in the same region as arn:aws:lambda:ap-south-1::function:ProcessImage.
How can i fix it?
amazon s3amazon-lambdaamazon-web-services
I can create lambda trigger using S3- same region.
But while creating trigger using different region S3 getting error
The bucket imebuckt must be in the same region as arn:aws:lambda:ap-south-1::function:ProcessImage.
How can i fix it?
Best Answer
S3 event can't trigger a lambda in a different region. What you can do is for example:
Send the S3 event to SNS topic or SQS queue and trigger lambda in your target region from that message.
Trigger Lambda in the same region from the S3 event and trigger your target region Lambda from the first Lambda.
Or a blend of the above two - Lambda in the S3 region sends a message to a SNS topic or SQS queue in the target region where your target lambda processes it.
I would do something like that. Hope that helps :)