How to Create VPC
1. Go to search type VPC and click on first option and then click on
Create VPC
2. Now do the following steps to create VPC
After filling all credential hit the create VPC button
Select your VPC and click on actions go to edit vpc settings
Tick both options in red square
3. Now we have to Create Internet gateway for VPC for that follow
the Following Steps
After creating gateway click on actions then attach to VPC
After selecting VPC click on Attach internet gateway
4. Create 2 Subnet one for public and one for private and make
some setting for each subnet respectively
After filling all credential click on Create Subnet
Tick on both options shown as in red box
Then click on save button.
This subnet is for public
Now for Private Subnet
5. Create Route table for public and private and add routes and
subnet association respectively
This is public route table
Carefully select you VPC for route table
Now click on subnet associations
This is Private Route Table
6. Create Nat gateway so that instances in private subnet can
connect to service outside your VPC but external services
cannot initiate a connection with those instances. To do that
follow the steps given below
Carefully select Public Subnet
7. After creating VPC now create Two instance it’ll be jum server
and DB server in newly created VPC. We will create jum srv as
public server and DB srv as private server
You can select AMI as you want
Select your VPC and subnet correctly
This instance is for Database Server
Select existing key that we were created for jum srv
For security we will use same as jum server
After creating instance click on connect
Make sure that after creating windows instance you have to
wait 4 mins to generate password
Upload the same key we created while creating insatance
Here we enter the DB server instance’s private IP addres
Enter username Administrator
Then DB instance password then click
You have to generate DB instance’s Password also
Girish Shirsath