Private Subnets

Best practices.

What private subnets are

Private subnets deny direct internet exposure by default. Application workloads belong here, not in public subnets; the missing internet-gateway route is the load-bearing security control that makes "private" actually private.

Design pattern per VPC

The canonical VPC has three subnet tiers per AZ: public, private app, private data. Three tiers per AZ across at least two AZs is the minimum production shape.

Egress patterns

Egress patterns are the cost lever. NAT gateways are expensive; VPC endpoints are cheaper for AWS services; centralised egress consolidates NAT capacity at org scale.

Ingress patterns

Ingress to private subnets goes through specific controlled paths. Public load balancer with private targets is the standard; PrivateLink and VPN cover the rest.

Operating private subnets

Operating private subnets is a discipline. VPC Flow Logs on every subnet, IAM-based access control as defence in depth, quarterly NACL and SG reviews, network IaC for change review.