By using AWS re:Post, you agree to the Terms of Use
/HttpApi timeout setting missing from SAM cloudformation template/

HttpApi timeout setting missing from SAM cloudformation template


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?

asked 2 years ago10 views
2 Answers
Accepted Answer

Hi gozargozarian,

This was added as part of the latest SAM launch:


answered 2 years ago

Thanks! This worked perfectly

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions