Skip to content
>GLB_
Go back

Understanding Subnets, Gateways, and Route Tables in AWS

When designing applications in AWS, it’s crucial to understand how networking components interact within a Virtual Private Cloud (VPC). This post will cover subnets, gateways, and route tables, specifically in the context of the AWS Free Tier.

Everything Lives Inside a VPC

A VPC (Virtual Private Cloud) is a logically isolated section of AWS where you can launch AWS resources. Within a VPC, assets are organized into subnets to manage and control communication, improving security and availability.

Dividing Assets into Subnets

To enhance security and structure within the VPC, we divide our assets into:

Traffic Flow: Gateways and Route Tables

Traffic inside a VPC is managed through gateways and route tables.

Internet Gateway (IGW)

An Internet Gateway (IGW) allows public subnets to communicate with the internet. If a resource needs public internet access (e.g., a web server), it must reside in a public subnet with a route to the IGW.

Route Tables

Route tables define how traffic is directed within the VPC. AWS uses different types of route tables:

NAT Gateway

A NAT (Network Address Translation) Gateway allows resources in a private subnet to initiate outbound internet connections while preventing unsolicited inbound traffic. It acts as an intermediary for internet-bound packets.

Communication Between Assets in a VPC

Any resource within the VPC can communicate with another resource in the same VPC, provided that security groups and network ACLs permit it. This setup ensures that internal traffic remains secure while allowing controlled external communication.

Conclusion

Understanding how subnets, gateways, and route tables interact is fundamental to designing secure and scalable AWS architectures. By properly segmenting networks and defining routing rules, you can protect critical assets while enabling necessary communication.

For a deeper dive into AWS networking, check out this AWS Skill Builder course.


Share this post:

Previous Post
Network Address Translation (NAT): Overcoming IPv4 Shortages
Next Post
Generating a Calendar Table in Power Query (M Language)