简体   繁体   English

在 AWS 中是否可以在具有私有端点的 API 网关前面放置一个网络负载均衡器?

[英]Is it possible in AWS to put a Network Load Balancer in front of the API Gateway that has private endpoints?

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).我面临以下挑战:我们有一个带有ApiGateway::RestApi和 PRIVATE 端点的 VPC(它们只能通过 VPC 访问,这是我们客户的要求)。 So the idea is that NLB (accessible from anywhere in the world) will translate the traffic to the API.所以这个想法是 NLB(可从世界任何地方访问)将流量转换为 API。 Is it possible to implement it in AWS?是否可以在 AWS 中实现它?

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.在 AWS 的 API 网关前添加 NLB 是没有技术能力的。 In the documentation they provide approach when API Gateway connects to the Network Load Balancer via VPCLink, but not vice versa.在文档中,他们提供了 API 网关通过 VPCLink 连接到网络负载均衡器时的方法,反之则不然。 If you try putting NLB in front of API Gateway you should add this API Gateway to a NLB Target group.如果您尝试将 NLB 放在 API Gateway 前面,则应将此 API Gateway 添加到 NLB 目标组。 NLB routes requests to the registered targets in its target group. NLB 将请求路由到其目标组中的已注册目标。 But API Gateway does not belong to any available target type: Instances, IP addresses, Lambda function, Application Load Balancer.但 API Gateway 不属于任何可用的目标类型:实例、IP 地址、Lambda 函数、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.我会建议考虑在 API Gateway 前使用 NLB 的替代方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 aws api 网关中使用 AWS 私有应用程序负载均衡器 - How to use AWS private application load balancer in aws api gateway EKS 和 Lambdas/API 网关前的 AWS 负载均衡器 - AWS load balancer in front of EKS and Lambdas/API Gateway 用于微服务的专用子网ecs连接上的负载均衡器的AWS API网关 - AWS API gateway to load balancer on private subnet ecs connection for microservices 网络负载均衡器前面的应用程序负载均衡器 - Application Load Balancer in front of Network Load Balancer 负载均衡器目标组后面的私有 API 网关显示不正常 - Private API Gateway behind load balancer target group shows unhealthy 在没有负载均衡器的情况下将AWS API Gateway与Fargate Service连接 - Connect AWS API Gateway with Fargate Service without load balancer 如何为 ECS 添加带有应用程序负载均衡器的 AWS API 网关? - how to add AWS API gateway with application load balancer for ECS? 如何将 Java Lambda 从 AWS API Gateway 转换为负载均衡器 - How To Convert Java Lambda from AWS API Gateway to Load Balancer AWS API 网关 websocket 是否需要负载均衡器来处理流量? - Does AWS API Gateway websocket need load balancer to handle traffics? 何时在 AWS 中通过 API 网关使用 Application Load Balancer? - When to use Application Load Balancer over API Gateway in AWS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM