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?

已提問 4 年前檢視次數 524 次
2 個答案
0
已接受的答案

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
已回答 4 年前
0

Thanks! This worked perfectly

已回答 4 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南