suprasad
suprasad

Reputation: 1513

Adding SQS as Trigger to Lambda (through management console)

I am trying to add SQS as Trigger for the Lambda function through management console:

enter image description here

but every time i click on add trigger and try to save it i get the below error:

enter image description here

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

Answers (1)

Pacifist
Pacifist

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.

enter image description here

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

Related Questions