AWS Lambda Task timed out after 6.00 seconds

后端 未结 2 1984
有刺的猬
有刺的猬 2021-02-12 14:09

I am using serverless framework. My Lambda function connects to DynamoDB table for updating item in table. Read & Write capacity units of table are 5 & auto_scaling is d

2条回答
  •  情深已故
    2021-02-12 14:31

    The default timeout for AWS Lambda functions when using the Serverless framework is 6 seconds. Simply change that to a higher value as noted in the documentation:

    functions:
      hello:
        ...
        timeout: 10 # optional, in seconds, default is 6
    

提交回复
热议问题