codingstuff.io
ExploreTutorialsProblemsCS Subjects
Get Started
ExploreTutorialsProblemsCS Subjects
Get Started
codingstuff.io

Master the art of building software through interactive tutorials, real-world problems, and guided projects.

Pune, Maharashtra, India

codingstuffmail@gmail.com

Product

  • Explore
  • Tutorials
  • Problems
  • CS Subjects

Company

  • About
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Sitemap

© 2026 codingstuff.io. All rights reserved.

Built with ❤️ for developers everywhere

/
/
All Tutorials
☁️

AWS Cloud

16 / 60 topics
15Introduction to Amazon VPC16Creating a VPC17VPC Subnets
Tutorials/AWS Cloud/Creating a VPC
☁️AWS Cloud

Creating a VPC

Updated 2026-05-15
10 min read

Creating a VPC

Introduction

Amazon Virtual Private Cloud (VPC) is a fundamental networking component in AWS, allowing you to launch AWS resources into a virtual network that you define. A VPC provides isolated and secure network environments for your applications. In this tutorial, we will walk through the steps to create and configure a VPC using the AWS Management Console.

Concept

A Virtual Private Cloud (VPC) is a logically isolated section of the AWS cloud where you can launch AWS resources in a virtual network that you define. You have complete control over your virtual networking environment, including IP address ranges, subnets, route tables, network gateways, and security settings. VPCs help you to build secure, scalable, and reliable applications on AWS.

Examples

Step 1: Create a VPC

  1. Log in to the AWS Management Console:

    • Open your web browser and navigate to the AWS Management Console.
    • Sign in with your AWS account credentials.
  2. Navigate to the VPC Dashboard:

    • In the AWS Management Console, click on the "Services" dropdown menu at the top-left corner of the page.
    • Under the "Networking & Content Delivery" section, select "VPC".
  3. Create a New VPC:

    • Click on the "Your VPCs" link in the left-hand navigation pane.
    • Click on the "Create VPC" button at the top-right corner of the page.
  4. Configure the VPC:

    • In the "Name tag" field, enter a name for your VPC (e.g., MyVPC).
    • In the "IPv4 CIDR block" field, enter an IPv4 address range for your VPC (e.g., 10.0.0.0/16).
    • Optionally, you can configure other settings such as DNS support and hostnames.
    • Click on the "Create VPC" button to create your VPC.

Step 2: Configure Subnets

Subnets are sections of a VPC that help you organize resources within your network. You can create multiple subnets in different Availability Zones for high availability.

  1. Navigate to the Subnets Dashboard:

    • In the AWS Management Console, click on the "Services" dropdown menu at the top-left corner of the page.
    • Under the "Networking & Content Delivery" section, select "VPC".
    • Click on the "Subnets" link in the left-hand navigation pane.
  2. Create a New Subnet:

    • Click on the "Create subnet" button at the top-right corner of the page.
  3. Configure the Subnet:

    • In the "Name tag" field, enter a name for your subnet (e.g., MySubnet).
    • Select the VPC you created in the previous step from the "VPC" dropdown menu.
    • Choose an Availability Zone from the "Availability Zone" dropdown menu.
    • Enter an IPv4 CIDR block for your subnet (e.g., 10.0.1.0/24).
    • Click on the "Create subnet" button to create your subnet.

Step 3: Configure Route Tables

Route tables determine where network traffic is directed. You can associate a route table with one or more subnets to control the routing of traffic within your VPC.

  1. Navigate to the Route Tables Dashboard:

    • In the AWS Management Console, click on the "Services" dropdown menu at the top-left corner of the page.
    • Under the "Networking & Content Delivery" section, select "VPC".
    • Click on the "Route Tables" link in the left-hand navigation pane.
  2. Create a New Route Table:

    • Click on the "Create route table" button at the top-right corner of the page.
  3. Configure the Route Table:

    • In the "Name tag" field, enter a name for your route table (e.g., MyRouteTable).
    • Select the VPC you created in the previous step from the "VPC" dropdown menu.
    • Click on the "Create route table" button to create your route table.
  4. Add Routes:

    • In the "Routes" tab of your new route table, click on the "Edit routes" button.
    • Click on the "Add route" button and enter a destination CIDR block (e.g., 0.0.0.0/0).
    • Select an Internet Gateway from the "Target" dropdown menu.
    • Click on the "Save routes" button to save your changes.

Step 4: Associate Subnets with Route Tables

  1. Navigate to the Subnets Dashboard:

    • In the AWS Management Console, click on the "Services" dropdown menu at the top-left corner of the page.
    • Under the "Networking & Content Delivery" section, select "VPC".
    • Click on the "Subnets" link in the left-hand navigation pane.
  2. Associate Subnet with Route Table:

    • Select the subnet you created earlier from the list.
    • In the "Actions" dropdown menu, select "Route table association".
    • Choose your route table from the "Select a route table" dropdown menu.
    • Click on the "Associate" button to associate the subnet with the route table.

What's Next?

Now that you have created and configured a VPC, the next step is to create subnets within this VPC. Subnets are essential for organizing your resources and ensuring high availability. You can proceed to create additional subnets in different Availability Zones and configure them as needed.

If you encounter any issues or need further assistance, refer to the AWS VPC Documentation for more detailed information and troubleshooting steps.


PreviousIntroduction to Amazon VPCNext VPC Subnets

Recommended Gear

Introduction to Amazon VPCVPC Subnets