Step-by-Step: Creating a VPC, Subnet & Gateway on AWS (Beginner-Friendly)
Okoye Genevieve

Okoye Genevieve @_eve_

About: Cloud & DevOps Engineer. Network Engineer. Designs & deploys robust, scalable cloud infra. Solutions: AWS, Azure, GCP. Implements DevOps. Linux & API Security pro. Connects globally.

Location:
Lagos, Nigeria
Joined:
May 22, 2025

Step-by-Step: Creating a VPC, Subnet & Gateway on AWS (Beginner-Friendly)

Publish Date: Jul 31
2 7

Why AWS VPC?
Amazon Virtual Private Cloud (VPC) is a service that allows you to provision a logically isolated section of the AWS Cloud where you can launch AWS resources in a virtual network. VPCs are essential for creating a secure and organized structure for your infrastructure in the Cloud, helping to reduce the risk of losing control over your resources.

I used Amazon VPC in this project to create subnets, assign IP addresses and CIDR blocks, enable auto-assign for public IPs, and connect my VPC to the internet using an Internet Gateway.

Here's how I set up my VPC and related resources in AWS:
*First the VPC *
✅ Step 1: Search for VPC
Head to the AWS Management Console.

In the search bar at the top, type “VPC”.

From the dropdown or results page, click on the VPC Dashboard (refer to the diagram above for visual aid).

✅ Step 2: Start the VPC Creation Process
On the VPC Dashboard, click the “Create VPC” button.

If you're unsure at any point, feel free to refer back to the diagrams provided.


✅ Step 3: Configure VPC Settings
Under Resource to create, select “VPC only”.

Enter a name for your VPC (e.g., MyFirstVPC).

Under IPv4 CIDR block, choose “Manual input”.

Type in your desired CIDR block (e.g., 10.0.0.0/16).

Leave all other settings as default (you can add tags if you like for better organization).

Once everything looks good, click “Create VPC”.

✅ You’ve successfully created a VPC!

Next, let’s move on to creating a Subnet.

Subnets are subdivisions of a VPC network. They allow you to segment your VPC into smaller, manageable networks. Note that there might already be default subnets in your account, one for every Availability Zone in your chosen region.
✅ Step 1: Navigate to the Subnet Section
--In the VPC Dashboard, scroll down the left-hand menu and click on “Subnets.”

--Then click the “Create Subnet” button at the top right.


✅ Step 2: Configure Subnet Settings
Name tag: Give your subnet a descriptive name (e.g., PublicSubnet1).

VPC ID: Choose the VPC you just created from the dropdown.

Availability Zone: Select one (e.g., us-east-1a) or leave it to be auto-assigned.

IPv4 CIDR block: Enter a smaller subnet of your VPC range (e.g., if your VPC CIDR is 10.0.0.0/16, a subnet could be 10.0.1.0/24).

⚠️ Tip: Make sure your subnet CIDR block fits within your VPC CIDR range.

Leave the other options at their default unless you have specific requirements.

Click “Create Subnet.”

🌍 Creating an Internet Gateway

Internet Gateways are essential for making applications available on the internet. By attaching an internet gateway, your instances can access the internet and be accessible to external users.
✅ Step 1: Go to Internet Gateways
--In the VPC Dashboard, click “Internet Gateways” on the left menu.

--Click the “Create internet gateway” button.

✅ Step 2: Set Up the Gateway
--Give your gateway a name tag (e.g., MyIGW).

--Click “Create internet gateway.”

✅ Step 3: Attach Gateway to Your VPC
--After creating the gateway, select it from the list.

--Click “Actions” > “Attach to VPC.”

--Choose your VPC and confirm.

*✅ Now your VPC has a subnet and an internet gateway attached.
You’re almost ready to make your subnet public by updating the route table, but that will be on my next post so stay tuned!
*

Comments 7 total

  • Joel Thompson
    Joel ThompsonJul 31, 2025

    Staying Tune!!!

    • Okoye Genevieve
      Okoye GenevieveJul 31, 2025

      I hope you enjoy the series Thompson !

      • Joel Thompson
        Joel ThompsonJul 31, 2025

        yeah, new to this platform and Devops as a whole, so am just looking to learning

        • Okoye Genevieve
          Okoye GenevieveAug 3, 2025

          I will be happy to bring to you more articles like this

          • Joel Thompson
            Joel ThompsonAug 4, 2025

            yeah that will be lovely, thanks

            • Joel Thompson
              Joel ThompsonAug 4, 2025

              Loking for more structured stuffs so i can follow it serially

Add comment