API Gateway Integration Timeout extended

With AWS now enabling the ability to increase timeouts.

How would one go about setting the timeout for an integration in serverless?

Currently the gateway is setup through the provider section and a lambda attached with an http event.

Setting the timeout through the provider or the lambda function does not seem to update the integration timeout.

1 Like

@willk any updates for this ?

@miljo-simelabs @willk any updates on this yet?

I know adding timeout to the event handlers lets you raise from the default (6s) to the default max (29s) because we’re had to do it :slight_smile:

We’ve not raised our account quota beyond this, so I can’t easily see if setting it higher works.

Have you got AWS to raise the account limit before trying to deploy ?

Unfortunately I did not find a setting to change it, so I ended up building a script in my pipeline to manually set the timeout via aws cli.

Unfortunately this did not work for me, so I had to ask aws to increase the timeout in the account. After increasing I still needed to set the timeouts via a script since the current serverless config did not allow me to set it beyond the default max.

That’s exactly what you need to do, yes. It’s outlined at the top of the Amazon API Gateway quotas and important notes - Amazon API Gateway page