我对AWS比较陌生。我已经能够:
[为了学习,我想在API网关和EC2实例之间放置一个网络负载平衡器(NLB)。之后,我想尝试使用自动伸缩组(以了解如何伸缩EC2实例)。
BUT我被困在NLB上了。将其添加后,对API网关端点的请求仅返回internal server error
。
问题
我应该使用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网关警告我,“您的NLB已经面向公众,因此可能不需要使用VPC链接”。有人可以阐明我应该做什么吗?
VPCLink