In this lesson, we explore a common AWS interview question: “What are ingress and egress?” This topic is essential for AWS practitioners and DevOps engineers. Before diving into the specifics, it’s important to define the key terms:Documentation Index
Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
Use this file to discover all available pages before exploring further.
- Ingress: Refers to incoming traffic to your AWS resources.
- Egress: Denotes outgoing traffic from your AWS resources.

For production environments, avoid using overly permissive rules. Instead, restrict access to a trusted range, such as your VPC’s IP range, to minimize security risks.
- Egress pertains to outbound traffic rules.
- Ingress refers to inbound traffic rules.
- Both terms are integral to the configuration of security groups.
- They also relate to how VPCs and subnets manage and route both incoming internet traffic and inter-subnet communication.