0% found this document useful (0 votes)
161 views2 pages

Steps To Create A VPC

1. The document provides instructions for setting up a VPC on AWS with public internet access. It involves logging into the AWS console, creating a VPC with the desired CIDR block and settings, creating a public subnet within an Availability Zone, associating the subnet with a route table to allow internet access through the default internet gateway.
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)
161 views2 pages

Steps To Create A VPC

1. The document provides instructions for setting up a VPC on AWS with public internet access. It involves logging into the AWS console, creating a VPC with the desired CIDR block and settings, creating a public subnet within an Availability Zone, associating the subnet with a route table to allow internet access through the default internet gateway.
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/ 2

1.

Login to AWS Console: Log in to your AWS account using your credentials at
https://aws.amazon.com/console/.
2. Navigate to VPC Dashboard: Once you are logged in, navigate to the VPC
Dashboard by clicking on "Services" at the top left corner, then select "VPC"
under the "Networking & Content Delivery" section.
3. Create VPC: In the VPC Dashboard, click on "Your VPCs" in the left-hand
navigation pane and then click the "Create VPC" button.
4. Configure VPC Settings: In the "Create VPC" wizard, you need to configure
the VPC settings. Provide the following information:
 Name tag: Enter a descriptive name for your VPC (e.g., "MyEC2VPC").
 IPv4 CIDR block: Specify the IP address range for your VPC. For
example, you can use "10.0.0.0/16" for a large VPC or "172.31.0.0/16"
for a smaller VPC.
 IPv6 CIDR block: This is optional. You can leave it empty if you don't
need IPv6 support.
5. Enable DNS Hostnames: By default, DNS hostnames are disabled for VPC. To
enable them, set the "DNS hostnames" attribute to "Yes." This allows instances
in your VPC to have public DNS hostnames.
6. Create a DHCP Options Set (Optional): If you want to customize DNS
settings or domain name for your VPC, you can create a new DHCP options
set. Otherwise, you can use the default DHCP options set.
7. Create a New Subnet: After creating the VPC, you'll need to create at least
one subnet to launch your EC2 instances into. Click on "Subnets" in the left-
hand navigation pane and then click the "Create Subnet" button.
8. Configure Subnet Settings: In the "Create Subnet" wizard, provide the
following information:
 Name tag: Enter a descriptive name for your subnet (e.g., "Public
Subnet").
 VPC: Choose the VPC you created in the previous steps.
 Availability Zone: Select an availability zone in which you want the
subnet to reside.
 IPv4 CIDR block: Specify the IP address range for the subnet. It should
be a subset of the VPC's CIDR block.
9. Create Route Table: After creating the subnet, you'll need to create a route
table to control the traffic flow for the subnet. Click on "Route Tables" in the
left-hand navigation pane and then click the "Create Route Table" button.
10. Configure Route Table Settings: In the "Create Route Table" wizard, provide
a name for your route table (e.g., "Public Route Table") and select the VPC you
created earlier.
11. Add Route to Internet Gateway: To allow instances in the subnet to access
the internet, you need to add a route to the internet gateway. In the "Routes"
tab of the route table, click "Edit routes," then click "Add route." Set the
destination to "0.0.0.0/0" and choose the internet gateway as the target.
12. Associate Subnet with the Route Table: In the "Subnet Associations" tab of
the route table, click "Edit subnet associations." Select the subnet you created
earlier and click "Save."

Your VPC is now set up with a subnet that has internet access through an internet
gateway.

You might also like