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?
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?
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 :)
Below can be an option
S3 (region-1) --> SNS (region-1) --> SQS (region-2) --> Lambda (region-2)
I think another solution is to call a Lambda in the same s3 region as a trigger and create another Lambda in your preferred region and use the Lambda's Function URL to post the payload to. This would be easier to setup than SES to SQS I think. Going to try it for myself.