2

I am writing a scheduler using Chalice Event Sources (Cron class). I've deployed the code and set the lambda timeout settings in AWS console to 8 mins. But whenever I deploy new changes using command chalice deploy --stage dev the timeout gets reset to default value i.e. 1min.

Adil
  • 21,278
  • 7
  • 27
  • 54

1 Answers1

3

You need to set the timeout in the chalice config.

Chalice deploys the settings for the Lambda function, so they must be set in the configuration for Lambda.

look in .chalice/config.json

{
  "version": "2.0",
  "app_name": "gtf",
  "stages": {
    "dev": {
      "api_gateway_stage": "dev",
      "lambda_functions": {
        "message_queue": { #This is your function name
            "lambda_timeout": 30
        }
      }
    }
  }
}

https://chalice.readthedocs.io/en/latest/topics/configfile.html

Michael Robellard
  • 2,268
  • 15
  • 25