HttpApi timeout setting missing from SAM cloudformation template

0

My company is deploying lambda based serverless applications using the SAM cloudformation template format (which frustratingly has different syntax from the standard template). Using this format, I cannot find a way to set the "timeout in milliseconds" for an AWS::Serverless::HttpApi type gateway placed in front of the lambda. As it is, they default to 5 seconds which doesn't allow for cold start times or for requests that are longer than normal.

These services need to be controlled through the template as the development team doesn't have access to the console to adjust it through the web interface (company security policy).

How can we set this value during the cloudformation deploy or get it added as a property in the templates?

posta 4 anni fa524 visualizzazioni
2 Risposte
0
Risposta accettata

Hi gozargozarian,

This was added as part of the latest SAM launch: https://github.com/awslabs/serverless-application-model/releases/tag/v1.22.0

Thanks,
Alan

AWS
con risposta 4 anni fa
0

Thanks! This worked perfectly

con risposta 4 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande