“紀錄一下建立 VPC 的流程” 1. 建立 VPC點選 Create VPC 輸入名稱及網段 , 這邊設置為 172.25.0.0/16 2. 新增4個subnets (2個Public、2個private)用途:預防AZ出現故障無法切換點選 Create subnet 確認 CIDR 為目前設置網段 && 遮罩為 /16 建立 public-a 為 172.25.1.0/24 建立 public-c 為 172.25.2.0/24 建立 private-a 為 172.25.3.0/24 建立 private-c 為 172.25.4.0/24 3. 新增Internet gateways,並將IGW掛上VPC新增Internet gateways (此步驟要先做完,才能新增 NAT GW) 輸入名稱 > Create internet gateway 選取剛剛建立的 internet gateway 右鍵點選 attach 選擇剛剛建立好的 VPC 4.新增NAT gateways,選擇Public subnet,並給一個外網IP新增 NAT Gateways 設定名稱,subnet,Elastic IP 點選 Create 5.新增2個route table,1個叫igw、1個叫nat新增 route table 建立1個 route for NAT gateway 點選剛剛建立的 private-route-nat 設定 route 規則 設定 NAT - route 目的為全通 建立1個 route for Internet gateway 點選剛剛建立的 public-route-igw 設定 route 規則 設定 IGW - route 目的為全通 6.subnets 套用route talbe,Public套用igw,private套用nat回到 subnet 選擇 public-a 點選設置 route table public-a 套用 public-route-igw 規則 回到 subnet 選擇 public-c 點選設置 route table public-c 套用 public-route-igw 規則 回到 subnet 選擇 pricate-a 點選設置 route table private-a 套用 private-route-nat 規則 回到 subnet 選擇 pricate-c 點選設置 route table private-c 套用 private-route-nat 規則 VPC 設置完成 AWS author: Laurance link: https://note.laurance.eu.org/2022/08/05/AWS-VPC建置/ Copyright notice: All articles on this website, unless otherwise stated, adopt CC BY-NC-ND 4.0 reprint policy. If reproduced, please indicate source! Prev: AWS - How to enable MFA for AWS Root user Next: AWS - 撈出 RDS 的 binlog