AWS Discussion Forum
API Gateway proxy braking access to Lambda - Printable Version

+- AWS Discussion Forum (https://letstalkaws.com)
+-- Forum: Q & A (https://letstalkaws.com/forum-10.html)
+--- Forum: Architecture Help (https://letstalkaws.com/forum-23.html)
+--- Thread: API Gateway proxy braking access to Lambda (/thread-31.html)



API Gateway proxy braking access to Lambda - phanikumar - 28-09-2018

I have an architecture where I have an API Gateway which invokes a Lambda Function and able to get response back. This Lambda function is supposed to communicate with some of the services that are running in my private VPC. So, I have attached my VPC to the lambda function and the subnets where my services are running. Now, I am able to get response from the services that are running in my VPC. But, I am unable to get the response from Lambda. It is throwing me 502 Internal Server Error. I am able to get the response from the resource configured at parent level in API Gateway but not for the services configured at proxy level. I even attached VPC endpoint interface for the API Gateway. Can someone suggest me how I can resolve this issue and get my API, Lambda and VPC all working together.