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 Antwort
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
beantwortet vor 10 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen