willk
June 13, 2024, 1:01pm
1
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?
TomC
November 15, 2024, 8:42am
4
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
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 ?
willk
November 15, 2024, 1:29pm
5
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.
willk
November 15, 2024, 1:33pm
6
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.
TomC
November 15, 2024, 3:16pm
7
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