AWS::EC2::NetworkAcl
- Firewall that controls inbound and outbound traffic to a subnet
- Differently from
Security Groupit sits atsubnet level - ACLs are evaluated before security groups
- Supports
ALLOWANDDENYrules (NG only allows)

- Both
inboundandoutboundrules in NACL are evaluated separately for each request (stateless) -
Rules in
SGarestateful. So what counts is if it's incoming or outgoing origin (regardless if it has a response) -
NACL rules have a
precedence number(1-32766). The first rule that matches is used - The last rule is a
DENYto* -
The
default NACLaccepts all inbound/outbound requests -
Ephemeral Portsis a port used by the client only to receive the response (32k - 65k) - This allows using a different ports for the request and response
- This way, the NACL outbound rule can allow only the ephemeral ports range (and not everything *)

Properties
Type: AWS::EC2::NetworkAcl
Properties:
Tags:
- Tag
VpcId: String