How to create a VPC from scratch in AWS Console?

0 votes
Can someone help me with a step by step process of creating a VPC and private and public subnet in it?
Feb 20 in AWS by Nabarupa Das

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+1 vote

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.

Step 2:- Provide the information you want in your VPC

Step 2:- Now you need to create subnet within the VPC, as the VPC is of no use if it has no subnets.

Step 4:- Create a private subnet for inline production or some secure data.

Step 5:- Create a public subnet for giving access to your architecture or infrastructure for public.

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.

Step 5:- Attach the created Internet Gateway to the VPC created.

Select your VPC and click on attach.

Step 6:- You need to create a route table to create a route for managing traffic.

Fill in with the necessary Information and Click on Create.

Step 7:- You need to attch the Internet Gateway to the route table created.

Add the route that allows all the traffic to the route table. Click on save.

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.

Click on Edit Route and select the Route Table to that Subnet and click on Save.

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.

answered Feb 20 by Priyaj
• 56,120 points
How to give internet connectivity to private subnet?
It is the same as for public subnet. All you need to do is: mention the ip addresses that you want to allow.
Just by changing the route, will it be all?
@madhavi, I have also the same doubt.
Hello @Dev, yes just by changing the rules you can play with the traffic.
Okay thank you priyaj it works. Thank you for the quick reply
Glad, I could help.
0 votes
Thank you @priyaj nicely explained.
answered Feb 22 by Dev
• 360 points
Glad you found it useful.

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers

How to create a VPC in AWS?

There is another method i.e. creating an ...READ MORE

answered Feb 20 in AWS by Priyaj
• 56,120 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.