Subnets


A subnet is a section of a VPC in which you can group resources based on security or operational needs. Subnets can be public or private.

AWSSubnets.png

In a VPC, subnets can communicate with each other. For example, you might have an application that involves Amazon EC2 instances in a public subnet communicating with databases that are located in a private subnet.