How does API Gateway communicate with Lambda?

What is the timeout for AWS API Gateway Lambda proxy?

I'm trying to figure out the timeout for AWS API Gateway Lambda proxy.

When I'm running my Lambda function locally, it works without issue. When I run it through API Gateway (I'm using the Proxy integration), the lambda function times out.

I tried looking at the documentation, but it is very sparse. Can someone please tell me what the timeout is for Lambda proxy? And how do I change it? It seems that you can change the timeout parameter via the Integration Response. There is also an example of a lambda call that will be routed by API gateway.

What is use Lambda proxy integration in API Gateway?

Use Lambda proxy integration can be used to integrate Lambda functions with API Gateway.

For example, you have an existing API gateway that's configured with a Lambda function. Let's assume that we want to create another endpoint in API Gateway that will use that Lambda function.

To accomplish that, you have to first configure API Gateway so that it knows about the existing Lambda function you have, and then you have to configure API Gateway for the new endpoint. Then you can start building the API Gateway with that new endpoint.

Related Answers

What is Lambda proxy in AWS?

How can I add a proxy to AWS Lambda? I have been digging into th...

What is the difference between Lambda and Lambda proxy?

I want to proxy some requests from ec2 instance to the web app server located...

What is proxy in Lambda?

Lambda is awesome but sometimes lambda is really slow. Because o...