Right, let’s talk about NACLs. If Security Groups are your application’s loyal, detail-obsessed bouncers (checking every single ID at the door), then NACLs are the distracted, easily overwhelmed security guard at the perimeter gate who has a list of rules but keeps forgetting who just walked in or out.
The core, and frankly most annoying, thing to remember about NACLs is that they are stateless. This isn’t a philosophical stance; it’s a technical reality that will bite you if you forget it. Let me explain: a Security Group is stateful. You allow SSH inbound, and the return traffic for that connection is automatically allowed back out, no questions asked. It remembers. NACLs have the memory of a goldfish. If an EC2 instance inside your subnet sends a request out (e.g., to download a software update from the internet), the outbound request might be allowed by the outbound rules. But when the response traffic comes back into the subnet, the NACL has completely forgotten about the original request. That return traffic must be explicitly permitted by an inbound rule. This is the single biggest “gotcha” and the source of most head-scratching “why can’t my instance get to the internet?” problems.