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, 2019 in AWS by Nabarupa Das
3,946 views

2 answers to this question.

+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, 2019 by Priyaj
• 58,020 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, 2019 by Dev
• 360 points
Glad you found it useful.

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to create a S3 bucket in AWS Console?

To create a S3 bucket in AWS, ...READ MORE

answered Feb 13, 2019 in AWS by Priyaj
• 58,020 points
1,173 views
0 votes
1 answer

How to create a VPC in AWS using Boto3?

Hi@akhtar, Amazon Web Services enables you to create ...READ MORE

answered Oct 9, 2020 in AWS by MD
• 95,460 points
1,683 views
0 votes
1 answer

how to access AWS S3 from Lambda in VPC

With boto3, the S3 urls are virtual by default, ...READ MORE

answered Sep 28, 2018 in AWS by Priyaj
• 58,020 points
10,150 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to create subnets in a VPC in AWS Console?

To create a subnet inside a VPC ...READ MORE

answered Feb 11, 2019 in AWS by Priyaj
• 58,020 points
1,077 views
0 votes
2 answers

How to create a VPC in AWS?

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

answered Feb 20, 2019 in AWS by Priyaj
• 58,020 points
1,286 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP