VPC Definition & Components
• VPC -Virtual Private Cloud: private network to deploy your resources
(regional resource)
• Subnets allow you to partition your network inside your VPC (Availability Zone resource)
• A public subnet is a subnet that is accessible from the internet
• A private subnet is a subnet that is not accessible from the internet
• To define access to the internet and between subnets, we use Route Tables
.
Internet Gateway
* Public Subnets have a route to the internet gateway.
NAT Gateways (AWS-managed) & NAT Instances (self-managed)
allow your instances in your Private Subnets to access the internet while remaining private
NACL (Network ACL)
Security Groups
Network ACLs vs Security Groups
Security Group
• Operates at instance level
• Supports allow rules only
• Is stateful: Return traffic is automatically allowed, regardless of any rules
NACL
• Operate at subnet level
• Supports allow/deny rules
• Is stateless: Return traffic must be explicitly allowed by rules
VPC Flow Logs
Capture information about IP traffic going into your interfaces:
• VPC Flow Logs
• Subnet Flow Logs
• Elastic Network Interface Flow Logs
• Helps to monitor & troubleshoot connectivity issues.
VPC Peering
VPC Endpoints
• Endpoints allow you to connect to AWS Services using a private network instead
of the public www network
• This gives you enhanced security and lower latency to access AWS services
• VPC Endpoint Gateway: S3 & DynamoDB
• VPC Endpoint Interface: the rest
Site to Site VPN
Direct Connect (DX)