AWS VPC
- Network = VPC
- Subnet = Subnet
- Router = Route table
- Internet Connection = Internet Gateway | Egress Internet Gateway
- NAT = NAT Gateway
Create a VPC
- Consider the following vpc

- web-1, web-2 will be different zones & are public subnets
- db-1,db-2 will be in different zones & are private subnets
- Note: For screen shots refer classroom video
- Initially all subnets are private
- Lets attach internet gateway

- We need to create a route table and associate it with subnets and create a route

- We have tried connecting to public instances and using public subnet to connect to private subnet instances
Note
- Networking restrictions are also based on cidr where rules look at network id
# to restrict a range
10.100.0.0/16 => 10.100.x.x
# to restrice a single ip
10.100.23.25/32 => 10.100.23.25
# Any ip
0.0.0.0/0 => x.x.x.x
