I have the following challenge: we have a VPC with an ApiGateway::RestApi with PRIVATE endpoints (they are only accessible via the VPC,- this is our client's requirement). So the idea is that NLB (accessible from anywhere in the world) will translate the traffic to the API. Is it possible to implement it in AWS?

1

There are 1 answers

1
Viktor On BEST ANSWER

After reading the documentation, I made the following conclusions.

There is no technical ability to add NLB in front of the API Gateway in AWS. In the documentation they provide approach when API Gateway connects to the Network Load Balancer via VPCLink, but not vice versa. If you try putting NLB in front of API Gateway you should add this API Gateway to a NLB Target group. NLB routes requests to the registered targets in its target group. But API Gateway does not belong to any available target type: Instances, IP addresses, Lambda function, Application Load Balancer. So, it can not be added to any target group. I will suggest considering the alternative of using NLB in front of API Gateway.