How to Create Virtual Private Cloud(VPC) In Amazon AWS

aws-vpc-logo

Step 1. Open your Amazon Web Services & at the bottom of the page there is a option named VPC under Networking column.Click on it.

vpc amazon main page pic

Step 2. Now click on the button Start VPC Wizard which is available at the top of the page.

vpc start vpc wizard page

Method 1 : VPC with a Single Public Subnet

Step 1. Now we have various configuration of vpc choose the configuration as per your requirements.As fer now i am choosing VPC with a Single Public Subnet.Now click on Select.

vpc step 1 pic

Step 2. Now specify following settings as per your requirements as for now i am specified the settings below.After that click on create VPC.

VPC name : Specify any name for your vpc
Availability zone : Specify Availablity as per your requirements


Note : Leave rest of the settings default

vpc step2 pic

Step 3. Now your VPC is successfully created.Click on ok to view your vpc.

vpc successfully created pic

Step 4. Now your vpc is successfully created and in available state.

Vpc main page

Step 5. Now we are going to attach VPC with our EC2 instance.For this we have to create a new instance.

http://cloudneer.com/academy/?kbe_knowledgebase=how-to-create-ec2-instance-in-amazon-aw

Note: If you want to create a new instance click on above link. While creating a new instance in step 3 Configure Instance Details.Under the network settings you can select a desired VPC.

vpc connect with instance pic

 

Method 2 : VPC with a Public and Private Subnets

Step 1. Select VPC with public and Private Subnets.Now click on Select.

Vpc private main page

Step 2. Now specify following settings as per your requirements as for now i am specified the settings below.

VPC name : Specify any name for your vpc
Availability zone : Specify Availablity as per your requirements

vpc private step 2

Note: Now at the right most side of the page there is a option use a NAT instance instead click on it & specify the below settings.

Instance type : t2.micro
Key pair name : Specify your key pair name

vpc private step 2.1

Note : Leave rest of the settings default and click on Create VPC.

Step 3. Now your VPC is successfully created.Click on ok to view your vpc.

vpc successfully created pic

Step 4. Now your VPC is successfully created and in available state.

vpc private available state pic

Step 5. Now we are going to attach VPC with our EC2 instance.For this we have to create a new instance.

http://cloudneer.com/academy/?kbe_knowledgebase=how-to-create-ec2-instance-in-amazon-aw

Note: If you want to create a new instance click on above link. While creating a new instance in step 3 Configure Instance Details.Under the network settings you can select a desired VPC.

vpc connect with instance pic

 Method 3 : VPC with Public and Private Subnets and Hardware VPN Access

Step 1. Select VPC with Public and Private Subnets and Hardware VPN Access.Now click on Select.

vpc hardware step1 pic

Step 2.  Now specify following settings as per your requirements as for now i am specified the settings below.After that click on Next.

VPC name : Specify any name for your vpc
Availability zone : Specify Availablity as per your requirements


Note : Leave rest of the settings default.

vpnhardware step2 pic

Step 3. Now Configure following settings as per your requirements as for now i am specified the settings below.After that click on Create VPC.

Customer Gateway IP : The Internet-routable ip address of your customer gateway which is external interface to your VPN.
Customer Gateway Name : Specify any name to your Customer Gateway.
VPN Connection name : Specify any name to VPN Connection.

Vpc hardware step3 pic

Step 4. Now your VPC is successfully created.Click on ok to view your vpc.

vpc successfully created pic

Step 5. Now your vpc is successfully created and in available state.

vpc hardware main page

Method 4 : VPC with a Private Subnet Only and Hardware VPN Access

 Step 1. Select VPC with a Private Subnet Only and Hardware VPN Access.Now click on Select.

vpc public private step 1

Step 2. Now specify following settings as per your requirements as for now i am specified the settings below.After that click on Next.

VPC name : Specify any name for your vpc
Availability zone : Specify Availablity as per your requirements

vpc public private step 2

Step 3. Now Configure following settings as per your requirements as for now i am specified the settings below.After that click on Create VPC.

Customer Gateway IP : The Internet-routable ip address of your customer gateway which is external interface to your VPN.Customer Gateway Name : Specify any name to your Customer Gateway.
VPN Connection name : Specify any name to VPN Connection.

Vpc hardware step3 pic

Step 4. Now your VPC is successfully created.Click on ok to view your vpc.

vpc successfully created pic

Step 5. Now your vpc is successfully created and in available state.

vpc public private myfirstvpc page