簡體   English   中英

AWS NLB警告:這些子網連接了一個Internet網關

[英]AWS NLB warning: There is an Internet Gateway attached to these subnets

我對AWS比較陌生。 我已經能夠:

  • 設置邊緣優化的API網關端點(帶有自定義域...安裝SSL證書等)
  • 通過HTTP代理將請求從API網關路由到在EC2實例上運行的服務器

為了學習,我想在API網關和EC2實例之間放置一個網絡負載平衡器(NLB)。 之后,我想嘗試使用自動伸縮組(以便了解如何伸縮EC2實例)。

但是我被困在NLB上了。 將其添加后,對API Gateway端點的請求僅返回internal server error

我應該使用internalinternet-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

美國職業棒球大聯盟 在此處輸入圖片說明

VPC鏈接 在此處輸入圖片說明

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM