Private subnets
- Public subnets will have route from internet whereas private subnets will not have route from internet
- Does private subnet require internet, if private subnet requires internet it needs a NAT
- AWS has internet gateway which gives bi-directional internet and Azure by default has internet access both inbound and outbound.
Private subnets in AWS
- Overview
- EC2 instances in the private subnets donot get internet access, if you want we need to create NAT
- To create NAT in AWS we have two options
- NAT instance
- NAT Gateway
- NAT should be present in public subnet and it should have public ip address
Private subnets in Azure
- All azure subnets have default outbound internet connectivity
- So in azure the vm can be private if it doesnot have public ip address
- In Azure we have 3 types of Route tables.
- System Route table
- BGP Route Table
- User defined Route table
- Refer Here
