πΊοΈ AWS Subnets: The Foundation of Your Cloud Network
Hey Cloud Geeks and Network Enthusiasts! π
Welcome to Day 3 of the #100DaysOfCloud Challenge: Create Subnet! Weβre marching forward in our journey of breaking down massive cloud migration tasks into simple, systematic steps, following the plan from the awesome folks at KodeKloud Engineer.
We've secured our access (Key Pair) and set up our virtual firewall (Security Group). Now, itβs time to define the actual location where our future servers will reside: the Subnet!
1. Introduction: Understanding Subnets π‘
Think of your VPC (Virtual Private Cloud) as your own private house in the cloud. A Subnet is a room inside that house.
- What it is: A Subnet is a contiguous range of IP addresses within your VPC, dedicated to a single Availability Zone (AZ).
- Availability Zone: An AZ is one or more discrete data centers in a region, designed to be isolated from failures in other AZs. A Subnet can never span multiple AZs.
- Why it Matters: Subnets allow you to logically segment your network. For example, you can put web servers in a "Public Subnet" and database servers in a "Private Subnet" for enhanced security and control.
For this task, we will create a single Subnet named nautilus-subnet under the default VPC. AWS automatically assigns an available IP range when you create a Subnet in the default VPC, simplifying the process for us!
Let's carve out our space in the cloud! π
2. Step-by-Step Guide: Creating the Nautilus Subnet via AWS Console
We will use the AWS Management Console, specifically the VPC Dashboard, to provision our new network segment.
Step 2.1: Navigate to the VPC Dashboard
Subnets are managed directly within the VPC service.
- Log in to the AWS Console.
- In the AWS console search bar, type
VPCand click on the first result to open the VPC Dashboard.
- In the left-hand navigation menu, scroll down and click on "Subnets".
Step 2.2: Initiate Subnet Creation
- Click the orange "Create subnet" button.
Step 2.3: Configure VPC and Subnet Details
This is where we define the Subnet's parent network and location.
VPC ID: Select your Default VPC. (This VPC is already provisioned by AWS when your account is created.)
-
Add new subnet: Click this button if it's not already expanded.
-
Availability Zone: Select any available AZ in your region (e.g.,
us-east-1a). Remember, a Subnet lives in only one AZ. -
Subnet name: Enter the required name:
nautilus-subnet -
IPv4 CIDR block: Since we are using the Default VPC, AWS will suggest or automatically select an available CIDR range for you based on the Default VPC's main CIDR. You may need to click "Specify an IPv4 CIDR block" and enter a specific range if prompted, but usually, selecting the AZ is enough in a default VPC environment. If a CIDR is required, select an available range like
172.31.32.0/20.
-
Availability Zone: Select any available AZ in your region (e.g.,
Step 2.4: Finalize and Create
- Review your settings to ensure the VPC is correct and the Subnet name is
nautilus-subnet. - Click the "Create subnet" button at the bottom.
You have now successfully defined a dedicated network space for your application servers within a specific Availability Zone! Fantastic work! π
3. Key Takeaways π
- 1:1 AZ Mapping: A Subnet must belong to exactly one Availability Zone.
- Networking Blocks: Subnets define the IP address range available for the servers you launch inside them.
- Default VPC Simplicity: Using the Default VPC simplifies CIDR block allocation, as the primary range is already defined.
4. Common Mistakes to Avoid π«
- Wrong VPC: Creating the Subnet in the wrong VPC (especially if you have multiple custom VPCs). Always double-check the VPC ID!
- Naming Confusion: Subnets are often named based on their purpose (e.g.,
app-tier-public) and their AZ (e.g.,us-east-1a). While we only needednautilus-subnet, in production, use clear naming conventions. - Running out of IPs: CIDR blocks are limited. If you choose a small block like
/28, you only get 16 IPs, and AWS reserves the first four and the last one, meaning you only get 11 usable IPs.
5. Conclusion + Call to Action! π
You've successfully mapped out the infrastructure location for the Nautilus team! By creating this Subnet, youβve set the stage for launching the actual computing resources. You're building a network from the ground up!
Keep the momentum going! If you found this guide helpful, please:
π¬ Letβs connect on LinkedIn: Cloud, DevOps, consistency, and learning in publicβletβs build together!
π Hritik Rajβ Support my journey on GitHub: Follow my #100DaysOfCloud challenge with real AWS tasks and hands-on learning
π GitHub β 100 Days of Cloud
Next up, we'll continue configuring the network, likely ensuring this Subnet is properly routed to the internet! Happy networking! π»






Top comments (0)