Reputation: 1513
I am trying to add SQS as Trigger for the Lambda function through management console:
but every time i click on add trigger and try to save it i get the below error:
As far as I understand this error appears if the lambda and sqs are in 2 different regions. But they both are in same region "US-East-2". This is my first time trying to create Lambda Function, what am i doing wrong? I would really appreciate any input.
Thanks!
Upvotes: 0
Views: 98
Reputation: 3203
I have just replicated the scenario and issue is happening when you try to refer the queue which does not exist. I created a queue and added as Trigger it worked fine but then I deleted my queue and tried adding the queue it gave me below error.
This is because the queue I'm referring to was not present as I deleted it and it didn't sync to Lambda. Lambda still referring to the same queue though it doesn't exist.
So create your queue and then try to add it as a trigger after refreshing the console. It will work.
Upvotes: 2