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?
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
Relevant questions
SAM Refused with "Template can not be parsed into a string. template=null"
Accepted Answerasked 3 years agoSAM deploy does not deploy Layer dependencies to S3
asked 6 months agoUpdate Existing Lambda Function using SAM.
Accepted Answerasked a month agoSAM Beta Local Invoke Error missing .Trash/SAM/template.yml
Accepted Answerasked 6 months agoAWS SAM: set the authorization cache TTL in the resource template (AWS::Serverless::Api)
asked 3 months agoProblems with CORS when creating Creating API's from CloudFormation / SAM
asked 3 years agoCan you create API Gateway methods using a CloudFormation template without a Lambda proxy function?
Accepted Answerasked 4 years agoAWS SAM/CloudFormation Internal Failure when Creating a Changeset
asked 2 months agoHttpApi timeout setting missing from SAM cloudformation template
Accepted Answerasked 2 years agoSAM deploy error - Template format error: Unrecognized resource types: [AWS::Athena::NamedQuery]
asked 3 months ago