Intro

Subnets

<aside> đź’ˇ To make the EC2 instances running in private subnets accessible on the internet, place them behind an internet-facing (running in public subnets) Elastic Load Balancer.

</aside>

<aside> đź’ˇ There is no concept of Public and Private subnets. Public subnets are subnets that have:

This allows the resources within the subnet to make requests that go to the public internet. A subnet is private by default.

Since the resources in a private subnet don't have public IPs, they need a NAT gateway for address translation to be able to make requests that go to the public internet. NAT gateway also prevents these private resources from being accessed from the internet.

</aside>

Internet Gateway (IGW)

Untitled