From the course: AWS Essential Training for Developers

Unlock the full course today

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

Public and private subnets

Public and private subnets

- [Instructor] Since you are 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 a subnet within each availability zone in this region. So if my EC2 instance has a private IP address of 172.31.0.something, then it's going to be in the US East One region, in the 1A 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 of your servers that will be exposed…

Contents