I have a lambda function which is tied to some external automation via a webservice. It takes about 45 seconds for the task to be completed.
I have already updated the time limitation for the lambda call to 2 mins and when I am testing it works fine.
However, when I am using the text bot in Amazon Lex I get the following message:
An error has occurred: Invalid Bot Configuration: Lambda request did not complete within permissible time (30 seconds).
Anyone know how to increase the Lex Bot Configuration to give my lambda script up to at least 1 minute ?
Thanks
At the moment this limit can't be modified as it is defined that AWS Lex will throw a
424
-DependencyFailedException
if:Source: AWS Lex docs.
Can you elaborate more on what you are trying to achieve here? Philosophically a bot should be responsive and hence Lex understandably put such a time limit on the lambda call. I would recommend to model the bot in a way that end user probes the bot for update (which is like polling from the ned user for the response being looked here). In the lambda the request processing should happen asynchronously. For example when the lambda gets a request then: