Create Custom VPC

Create a VPC

Navigate to the VPC console.

Note: Do not use the VPC Wizard to create your VPC; instead, configure your VPC from scratch.

  1. Select Your VPCs.
  2. Click Create VPC, and set the following values:
  3. Click Create.

Create Public and Private Subnets

Create 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.

Create Public Subnet

  1. Select Subnets.
  2. Click Create subnet.
  3. Enter the following values in order for Name, VPC, Availability Zone, and IPv4 CIDR Block.

Note: 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.

Create Private Subnet

  1. Click Create subnet.
  2. Enter the following values in order for Name, VPC, Availability Zone, and IPv4 CIDR Block.

Note: 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.