Skip to content

How to prevent timeouts in an Bedrock PromptFlow called via an Agent's Lambda?

0

I am building a presale recommendation chat bot. I am using a Bedrock Agent who is currently tasked to only use the tools defined (a lambda). The lambda calls a prompt flow that returns a result set. I did not yet add the dynamodb session storage to capture user input nor anything and yet it often times out.

Here's the output I get: Response { "errorType": "Sandbox.Timedout", "errorMessage": "RequestId: 09db928e-20da-48b6-84d7-5476bd81a64a Error: Task timed out after 3.00 seconds" }

Here's my code:

Enter image description here

1 Answer
2
Accepted Answer

Well it turns out Lambda functions can have their timeout defined in the Configuration tab -> General Configuration.

answered 2 years ago
EXPERT
reviewed 2 years ago
AWS
EXPERT
reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.