From the course: AWS Essential Training for Developers

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Public and private subnets

Public and private subnets

- [Instructor] Since you were given so many private IP addresses to work with in a VPC, you can then create subnets within these IP ranges. A subnet is a group of sequential IP addresses, and it's a way for you to divide up your network of available IP ranges into smaller buckets, so that you can write networking rules that apply to a group of addresses. On the left hand menu in the VPC console, click on Subnets. AWS has already created some subnets for us within our default VPC. If you scroll to the right in the table, you'll notice that it created subnets within different availability zones in this region. So, if my instance has a private IP address of 172.31.80-ish, something, then it's going to be in the us-east-1b availability zone. You can divide up your subnets even further. And a best practice is to create a public subnet within an availability zone that includes all your servers that will be exposed to incoming…

Contents