0% found this document useful (0 votes)
18 views18 pages

Creation of VPC

The document outlines the steps to create a Virtual Private Cloud (VPC) and set up associated components such as subnets, internet gateways, and EC2 instances. It provides a detailed guide on configuring network settings, security groups, and bootstrap code for web and database servers. The process ensures a secure and organized cloud environment using major cloud providers like AWS, Google Cloud, and Azure.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views18 pages

Creation of VPC

The document outlines the steps to create a Virtual Private Cloud (VPC) and set up associated components such as subnets, internet gateways, and EC2 instances. It provides a detailed guide on configuring network settings, security groups, and bootstrap code for web and database servers. The process ensures a secure and organized cloud environment using major cloud providers like AWS, Google Cloud, and Azure.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Creation of VPC

A Virtual Private Cloud (VPC) is like your own private space on the internet inside a cloud service. It
lets you set up and manage your own network, just like having a secure office network but in the
cloud. You can control who can access it, how different parts connect, and whether it can reach the
internet. Big cloud providers like AWS, Google Cloud, and Azure offer VPCs to keep your data safe and
organized.

STEP 1: GO TO THE VPC DASHBOARD AND CLICK ON CREATE VPC

STEP 2: SELECT VPC ONLY AND GIVE A NAME TO THE VPC. CHANGE THE IPV4 CIDR TO 10.0.0.0/16
STEP 3: CLICK ON CREATE VPC

STEP 4: WE HAVE SUCCESSFULLY CREATED THE VPC.


STEP 5: NOW GO TO SUBNETS AND CREATE A SUBNET. SELECT THE VPC

STEP 6: GIVE THE NAME TO THE SUBNET AND SELECT ANY AVAILABILITY ZONR AND ALSO CHANGE
THE IPv4 CIDR BLOCK TO 10.0.1.0/24.
STEP 7: CREATE ANOTHER SUBNET AND GIVE THE IPv4 RANGE TO IT

STEP 8: FOR THE SUBNET 1 GIVE THE PUBLIC ACCESS BY GOING TO THE EDIT SUBNET SETTINGS IN
ACTION.
STEP 9: GO TO INTERNET GATEWAYS AND CREATE A NEW INTERNET GATEWAY.
STEP 10: GIVE A NAME TO THE INTERNET GATEWAY AND CLICK ON CREATE INTERNET GATEWAY.

STEP 11: NOW ATTACH THE CREATED GATEWAY TO THE VPC.


STEP 12: SELECT THE VPC THAT WE CREATED JUST NOW AND CLICK ON ATTACH INTERNET GATEWAY

STEP 13: INTERNET GATEWAY IS SUCCESSFULLY ATTACHED TO THE VPC.


STEP 14: CREATE A ROUTE TABLE AND GIVE IT A NAME. SELECT THE VPC WHICH WE CREATED.
STEP 15: NOW CLICK ON ACTIONS AND IN THAT EDIT SUBNET ASSOCIATIONS.

STEP 16: NOW CLICK ON THE SUBNET 1 AND CLICK ON SAVE ASSOCIATIONS.
STEP 17: NOW AGAIN CLICK ON ACTIONS AND THEN EDIT ROUTES.

STEP 18: ADD A NEW ROUTE WITH TARGET AS INTERNET GATEWAY AND SELECT THE GATEWAY.
STEP 19: CREATE AN EC2 INSTANCE FOR THE WEB SERVER.
STEP 20: SELECT THE VPC AND ALSO THE SUBNET 1 THAT WE CREATED. ALSO ENABLE THE PUBLIC IP.

STEP 21: ADD SECURITY GROUP RULES FOR TYPE HTTP AND HTTPS.
STEP 22: GO TO ADVANCED DETAILS AND IN THAT ADD THE BOOTSTRAP CODE.
#!bin/bash
sudo su
yum update -y
yum install httpd -y
cd /var/www/html
echo "23BD5A0507">index.html
service httpd start
chkconfig httpd on

STEP 23: NOW LAUNCH OTHER INSTANCE FOR DATABASE SERVER.


STEP 24: SELECT THE VPC AND THE SUBNET 2 THAT WE CREATED

STEP 25: CREATE A SUBNET GROUP.


STEP 26: CHANGE THE SUCURITY GROUP RULES TO MYSQL/Aurora AND SOURCE TYPE TO CUSTOM
AND ADD 10.0.1.0/24.

STEP 27: IN THE ADVANCED DETAILS ADD THE BOOTSTRAP CODE.


#!bin/bash
sudo su
yum update -y
yum install httpd -y
cd /var/www/html
echo "23BD5A0507">index.html
service httpd start
chkconfig httpd on
STEP 28: NOW SELECT THE INSTANCE AND GO TO THE PUBLIC IP ADDRESS OF THE INSTANCE.
STEP 29: NOW WE CAN SEE THE OUTPUT.

STEP 30: FOR THE DB-SERVER THERE IS NO PUBLIC IP AS WE CAN SEE.

You might also like