Reputation: 101
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.
Upvotes: 2
Views: 422
Reputation: 2358
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
Upvotes: 3