Chalice: Increase lambda deployment timeout?

Created on 20 May 2017  Â·  9Comments  Â·  Source: aws/chalice

I had to raise botocore/endpoint.py/DEFAULT_TIMEOUT manually in order to succeed in pushing my lambda function.

enhancement

Most helpful comment

Cool, thanks!

I just wanted to tag this issue with the command flag that was used so if someone lands here from a search, they got it.

All 9 comments

Interesting. Out of curiosity what value did you have to change it to?

120 (out of frustration) ;)

On May 23, 2017 1:45 PM, "James Saryerwinnie" notifications@github.com
wrote:

Interesting. Out of curiosity what value did you have to change it to?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/awslabs/chalice/issues/344#issuecomment-303472782,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AExvzLVI8cB346JrvIOyTDvCOA6HPsLyks5r8xYhgaJpZM4NhZqF
.

I have precisely the same problem. I got "Connection aborted. Timed out sending your app to Lambda.", repeatedly, when trying to do "chalice deploy". It would be great, if a command line option to specify timeout is available.

Same problem here. This started happening when I added numpy/pandas to my requirements.txt, so presumably it has something to do with bundling that up and sending it. Also confirming that changing botocore/endpoint.py/DEFAULT_TIMEOUT to 120 worked.

Hey @jamesls, I started working on this and was wondering if you like the idea of allowing this to be configured through an option in the deploy command. I was imagining something like:

$ chalice deploy --botocore-timeout 120

After the timeout value is consumed by the cli I was thinking about changing the CLIFactory class so that a botocore_timeout value can be set and modified.

When this is available, I believe they settled on --connection-timeout in #629, based on the additions in commit eafa12975

However, at the time of this post, I think this in master and not up on pypi yet.

✘-1 ~/gh/tableflipless [master L|✚ 2…7] 
08:54 $ pipenv run chalice deploy --botocore-timeout 145
Error: no such option: --botocore-timeout
✘-2 ~/gh/tableflipless [master L|✚ 2…7] 
08:56 $ pipenv run chalice deploy --connection-timeout 145
Error: no such option: --connection-timeout
✘-2 ~/gh/tableflipless [master L|✚ 2…7] 
08:56 $ pipenv run chalice deploy --connection-timeout=140
Error: no such option: --connection-timeout

With chalice==1.1.0

You are correct, if you look at the change log this feature will be released with the next release which is currently TBD.

Cool, thanks!

I just wanted to tag this issue with the command flag that was used so if someone lands here from a search, they got it.

Not the change timeout command is:

chalice deploy --connection-timeout 120

Was this page helpful?
0 / 5 - 0 ratings