Cross region calls , where event source is in different region than the lambda

0

Hi Team I have a use case where I am trying to invoke my lambda from an SQS using eventSource. However both my SQS and lambda are in different region And while deployment it is failing saying "Invalid request provided: Event source region must match Lambda region eu-west-1" If the scenario is that I can't change region of either what should be my way forward? Things tried :

  1. Saw a solution saying go and enable cross region call in Advance settings in configuration tab , but couldn't found any such checkbox asking to enable cross region call.
1 réponse
0

Hello

It is not possible to execute lambda with SQS as the even source if the SQS queue is in a different region. Please refer this article -> https://repost.aws/knowledge-center/lambda-sqs-event-source

I would suggest that you look into a fan-out solution such as this -> https://aws.amazon.com/getting-started/hands-on/send-fanout-event-notifications/

profile picture
Bisina
répondu il y a 10 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions