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 Antwort
0
Akzeptierte Antwort

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

AWS
EXPERTE
beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen