我是AWS的新手 . 我已经能够:
-
设置边缘优化的API网关 endpoints (具有自定义域...安装SSL证书等)
-
通过HTTP代理将API网关的请求路由到EC2实例上运行的服务器
为了学习,我想在API网关和EC2实例之间放置一个网络负载均衡器(NLB) . 之后,我想尝试自动缩放组(以便了解如何扩展/扩展EC2实例) .
BUT 我被困在NLB上 . 添加后,对API网关 endpoints 的请求只返回 internal server error
.
Question
我应该使用 internal
或 internet-facing
NLB将请求从API网关路由到EC2实例吗?
-
当我选择使用
internal
NLB时,我收到一条警告消息You are creating an internal Load Balancer, but there is an Internet Gateway attached to these subnets
...然后我遇到了internal server error
问题 . -
当我设置
internet-facing
NLB时,API网关警告我"Your NLB is already public-facing, so the use of a VPC Link might be unnecessary"的效果 .
有人能说清楚我应该做些什么吗?