[英]AWS NLB warning: There is an Internet Gateway attached to these subnets
我對AWS比較陌生。 我已經能夠:
為了學習,我想在API網關和EC2實例之間放置一個網絡負載平衡器(NLB)。 之后,我想嘗試使用自動伸縮組(以便了解如何伸縮EC2實例)。
但是我被困在NLB上了。 將其添加后,對API Gateway端點的請求僅返回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鏈接”。 有人可以闡明我應該做什么嗎?
我能夠在專用子網中創建NLB並創建VPC鏈接。 專用子網使用網絡地址轉換(NAT)網關,而不是Internet網關。 鏈接: https : //docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.