Dan*_*Dan 5 amazon-ec2 amazon-web-services aws-api-gateway elastic-load-balancer
我对AWS比较陌生。我已经能够:
为了学习,我想在API网关和EC2实例之间放置一个网络负载平衡器(NLB)。之后,我想尝试使用自动伸缩组(以便了解如何伸缩EC2实例)。
但是我被困在NLB上。将其添加后,对API Gateway端点的请求只需返回即可internal server error。
题
我应该使用internal还是internet-facingNLB将请求从API网关路由到EC2实例?
internalNLB时,会收到一条警告消息You are creating an internal Load Balancer, but there is an Internet Gateway attached to these subnets……然后我遇到了internal server error问题。internet-facingNLB时,API网关会警告我:“您的NLB已经面向公众,因此可能不需要使用VPC链接”。有人可以阐明我应该做什么吗?
我能够在私有子网中创建 NLB 并创建 VPC 链接。私有子网使用网络地址转换 (NAT) 网关,而不是互联网网关。链接:https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
| 归档时间: |
|
| 查看次数: |
972 次 |
| 最近记录: |