Subnet

aws/networking aws/vpc

💡 Definition

A Subnet is a range of IP addresses in your VPC. You launch AWS resources (like EC2 instances) into a specific subnet. Use a public subnet for resources that must be connected to the internet, and a private subnet for resources that won't be connected to the internet.

🔑 Key Concepts

⚙️ How it Works

  1. Create VPC: Define the main CIDR block (e.g., 10.0.0.0/16).
  2. Create Subnet: Define a smaller CIDR block (e.g., 10.0.1.0/24) and select an AZ.
  3. Route Table: Associate the subnet with a route table that determines where traffic goes.

🎯 Use Cases

💰 Pricing Model

📝 Exam Tips (CLF-C02)


See Also: * VPC * Internet Gateway * NAT Gateway * Route Table