Create Custom VPC

Srini
2 min readSep 9, 2020

--

STEP -1 Create VPC

Create VPC using the following Information

Name: VPC-ASG-Demo

IPv4 CIDR block : 10.0.0.0/16

Tenancy : Default

STEP -2 Create Two Subnets in different availability Zones

Publicsubnet1 with CIDR 10.0.1.0/24 (US-east -1a)
Publicsubnet2 with CIDR 10.0.2.0/24 (US-east -1b)
Under VPC : Mention VPC ASG- DEMO for both subnets

STEP -3 Create Internet Gateway

Name tag : VPC-ASG-Demo-IG

Now attach the Internet gateway to the VPC

STEP -4 Modify the main route table to add route for internal gateway

Go to Route Table, under Route tab select Edit Routes

Under edit route , Add new route with the following information and save

Destination: 0.0.0.0/0

Target: VPC-ASG-Demo-IG

Click Save Routes

STEP -5 Associate both the subnets to the main route table

Now we need to associate the routes to the subnets. Go to the subnets tab and select edit subnets

Subnet Associations

Select Both subnets and associate by clicking the save button as shown below

Associate subnets

--

--