AWS: VPC - 4
VPC Part 4
Simples demo
- Diagram of customized VPC - MyDemoVPC with Internet Gatway and VPN connect
graph LR
InternetGW(Internet Gateway)
VirtualGW(Virtual Gateway)
INTER(Internet - Public)
InternetGW --- INTER
VirtualGW --- SERVER
subgraph MyDemoVPC
EC2_A(EC2 Instannce A)
EC2_B(EC2 Instannce B)
EC2_E(EC2 Instannce E)
EC2_F(EC2 Instannce F)
EC2_C[(Database Master)]
EC2_D[(Database Slave)]
MainRouteTable(10.0.0.0/16)
PrvSubnet(10.0.2.0/24)
PubSubnet(10.0.1.0/24)
VPNSubnet(10.0.3.0/24)
MainRouteTable --- InternetGW
MainRouteTable --- NetworkACL
NetworkACL --- PubSecGrp
NetworkACL --- PrivSecGrp
PrivSecGrp --- PrvSubnet
VPNSubnet --- VirtualGW
VPNSubnet --- MainRouteTable
PubSecGrp --- PubSubnet
subgraph Implied_Router
MainRouteTable(10.0.0.0/16)
end
subgraph Private_Subnet
PrvSubnet
EC2_C
EC2_D
end
subgraph Public_Subnet
PubSubnet
EC2_A
EC2_B
end
subgraph VPN_Subnet
VPNSubnet
EC2_E
EC2_F
end
end
InternetGW
subgraph Internet
INTER
end
subgraph OnPremise
SERVER
end
- Customized Route tables of Subnet Public_Subnet
Destination |
Target |
10.0.1.0/16 |
local |
2002:0a00:0100:0:0:0:0:0/56 |
local |
0.0.0.0/0 |
InternetGW |
::0/0 |
InternetGW |
- Main Route tables of Subnet Private_Subnet
Destination |
Target |
10.0.1.0/16 |
local |
2002:0a00:0100:0:0:0:0:0/56 |
local |
- Route table of Subnet VPN_Subnet
Destination |
Target |
10.0.1.0/16 |
local |
2002:0a00:0100:0:0:0:0:0/56 |
local |
0.0.0.0/0 |
VirtualGW |