amazon-archives / awsmobile-cli

CLI experience for Frontend developers in the JavaScript ecosystem.
Apache License 2.0
142 stars 35 forks source link

Increase Lambda execution timeout by default #53

Closed yuyokk closed 6 years ago

yuyokk commented 6 years ago

Hi guys,

Last couple days I've been facing the issue when my requests were failing randomly with statusCode: 502

After some investigation I see that Lambda execution timeout is set to 3 seconds (I guess it's a default one) meaning all other longer requests will be rejected.

image

I think it makes sense to increase this number to 10 or 30 seconds by default. Or maybe add an option to the cli while configuring API Getaway feature?

Please let me know your thoughts on this. Thank you!

elorzafe commented 6 years ago

Hi @yuyokk

Thanks for your feedback, we can add a configuration setting on the cli for this. I will set this as a feature request.

elorzafe commented 6 years ago

@yuyokk you can modify manually mobile-hub-project.yml to increase the timeout, and then run awsmobile push

yuyokk commented 6 years ago

@elorzafe that's what I actually did :D thanks for heads up!