Sunday, January 11, 2026

AWS Region, Availability Zone and subnet

 Sure — these three concepts form the foundational network hierarchy in AWS. Let’s go step by step:


๐Ÿ—บ️ 1. AWS Region

A Region is a geographical area where AWS has a cluster of data centers.

✅ Key points:

  • Each Region is physically separate and independent from other Regions.

  • Each Region contains multiple isolated locations called Availability Zones (AZs).

  • Regions are named in the format:
    <continent>-<city/area>-<number>, e.g.:

    • us-east-1 → N. Virginia (USA)

    • ap-south-1 → Mumbai (India)

    • eu-west-1 → Ireland

๐Ÿงญ Use case:

You choose a Region based on:

  • Proximity to users (to reduce latency)

  • Compliance requirements (data residency laws)

  • Service availability

  • Cost differences (pricing varies by Region)

⚙️ Example:

If your customers are in India, you might choose the ap-south-1 (Mumbai) Region to minimize latency.


๐Ÿข 2. Availability Zone (AZ)

An Availability Zone is one or more physically separate data centers within a Region.

✅ Key points:

  • Each Region has at least two AZs (some have up to six).

  • AZs are labeled like:

    • ap-south-1a, ap-south-1b, ap-south-1c

  • AZs in a Region are connected via low-latency private fiber networks.

  • They are independent in power, cooling, and networking, reducing the risk of a single point of failure.

๐Ÿงญ Why AZs matter:

  • For high availability, deploy applications across multiple AZs.

  • Example: You can run EC2 instances in ap-south-1a and ap-south-1b so if one AZ goes down, your app stays online.


๐ŸŒ 3. Subnet

A Subnet is a range of IP addresses within a VPC (Virtual Private Cloud) and is mapped to a single Availability Zone.

✅ Key points:

  • Each Subnet belongs to one AZ only.

  • Subnets divide your VPC’s IP address space (CIDR block).

  • There are two main types:

    • Public Subnet: Connected to the Internet via an Internet Gateway.

    • Private Subnet: No direct Internet access (used for databases, internal services).

  • You can also have isolated subnets (no route to Internet or NAT Gateway).

⚙️ Example:

If your VPC has a CIDR of 10.0.0.0/16, you can create:

  • 10.0.1.0/24 → Public Subnet in ap-south-1a

  • 10.0.2.0/24 → Private Subnet in ap-south-1b

Each subnet is tied to one AZ.


๐Ÿ” How They Relate

ConceptScopeExampleDescription
RegionGeographic areaap-south-1Group of multiple data centers (AZs)
Availability Zone (AZ)Physical data centerap-south-1aIndependent infrastructure within a Region
SubnetNetwork range inside a VPC10.0.1.0/24Tied to one AZ, used to isolate resources

๐Ÿ—️ Example Hierarchy

AWS Region: ap-south-1 (Mumbai)
 ├── Availability Zone: ap-south-1a
 │     ├── Public Subnet (10.0.1.0/24)
 │     └── Private Subnet (10.0.2.0/24)
 ├── Availability Zone: ap-south-1b
 │     ├── Public Subnet (10.0.3.0/24)
 │     └── Private Subnet (10.0.4.0/24)
 └── Availability Zone: ap-south-1c
       └── Database Subnet (10.0.5.0/24)

๐Ÿงฉ In Simple Terms

TermAnalogy
RegionCountry
Availability ZoneCity in that country
SubnetNeighborhood (IP address block) inside that city

Would you like me to include a diagram showing the Region → AZ → Subnet hierarchy? It helps visualize how they interconnect.

No comments:

Post a Comment