Create Custom VPC
Navigate to the VPC console.
Note: Do not use the VPC Wizard to create your VPC; instead, configure your VPC from scratch.
Create Public and Private Subnets
Build two subnets for your VPC. One will be public to allow access from the Internet and one will be private. Ensure you are assignibg the valid CIDR blocks when creating your subnets.
us-east-1a
, 10.0.1.0/24Note: Although the name of our subnet is hol-public-a, it is not actually public just yet. By definition a public subnet must have an Internet Gateway. In the next tasks, we will add an Internet Gateway so that instances in this newly created public subnet can access the Internet.
us-east-1b
, 10.0.2.0/24Note: By default, all subnets are private. If there is no route to the Internet via an Internet Gateway, instances running in the subnet can only be reached by other instances in the VPC.