Calling Private API from Lambda in VPC

0

Hi,

A customer is trying to invoke a private API Gateway from a Lambda in a VPC, there is a VPC endpoint configured in the VPC pointing to the private API Gateway. They are able to invoke the private API Gateway from an EC2 instance in the same VPC via the VPC endpoint, however if they try and do the same from the Lambda in the VPC they get no response. The resource policy on the private API Gateway is configured to allow all traffic from the VPC.

Does anyone know if this is a viable configuration and if so any references would be much appreciated. If this is not a viable configuration is it because the Lambda is actually in an AWS managed VPC so can't use the VPC endpoint in the customer VPC?

Even after a lot of searching I can't find any references to calling a private API Gateway from a Lambda so any help would be really appreciated

1개 답변
0
수락된 답변

This blog post has an example of a VPC attached Lambda function invoking a private API Gateway.

AWS
전문가
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠