Creating a VPC from scratch is bit tricky but then again is a matter of few clicks. The process of creating a VPC from scratch with two subnets are as follows:-
Step 1:- Go to vpc console and click on create VPC.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=13169846840898650638)
Step 2:- Provide the information you want in your VPC
![](https://www.edureka.co/community/?qa=blob&qa_blobid=17700229058965004858)
Step 2:- Now you need to create subnet within the VPC, as the VPC is of no use if it has no subnets.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=9483315968792715332)
Step 4:- Create a private subnet for inline production or some secure data.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=13683224315485399820)
Step 5:- Create a public subnet for giving access to your architecture or infrastructure for public.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=18282105091768153979)
Step 6:- By just mentioning public the subnet won't work as public. We need to create an Internet Gateway inorder to provide access to the public traffic.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=5202231464999484549)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=16730643496735965507)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=2752973279764244753)
Step 5:- Attach the created Internet Gateway to the VPC created.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=16375274961068039471)
Select your VPC and click on attach.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=15472472688252810560)
Step 6:- You need to create a route table to create a route for managing traffic.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=7757151761704412586)
Fill in with the necessary Information and Click on Create.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=11676020606780860741)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=9221456712412668063)
Step 7:- You need to attch the Internet Gateway to the route table created.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=17180149196222118587)
Add the route that allows all the traffic to the route table. Click on save.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=6589986319276371152)
Step 8:- Now its time for adding the Internet Gateway created for Public access to the Public Subnet. Click on the public subnet that is created and select the menu of Routes.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=16229384255054885177)
Click on Edit Route and select the Route Table to that Subnet and click on Save.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=2322249957615912508)
You have now created a VPC and two subnet, one Public and one Private. The public subnet is having the route table that is associated with an Internet Gateway. Hope this helps.