boostercloud / booster

Booster Framework
https://www.boosterframework.com
Apache License 2.0
416 stars 87 forks source link

Increase handlers' timeouts via configuration #596

Open juanjoman opened 3 years ago

juanjoman commented 3 years ago

Description

Right now, all lambda timeouts are set to 1 minute: https://github.com/boostercloud/booster/blob/master/packages/framework-provider-aws-infrastructure/src/infrastructure/params.ts#L24

It would be great to increase this limitation via configuration.

Possible Solution

Add a timeout property in the Booster framework config to edit this limitation. For example:

Booster.configure('development', (config: BoosterConfig): void => {
  config.appName = 'my-store'
  config.handlersTimeout = 6 // 6 minutes - 1 minute as default if not specified
  config.provider = AWS.Provider() // Or through a provider "props" object
})
juanjoman commented 3 years ago

cc @alvaroloes

NickSeagull commented 3 years ago

Remember that this should be a solution that could be applied to any provider, not only AWS.