Amazon VPC Overview

Amazon Virtual Private Cloud (VPC) allows you to launch AWS resources in a logically isolated virtual network that you define.

NAT Gateway

A NAT Gateway allows outbound internet traffic from instances in a private subnet while preventing inbound internet connections.

  • Redundant in AZ: Ensures high availability within the Availability Zone.
  • Performance: Supports speeds up to 45 Gbps.
  • Maintenance: No need to patch.
  • Security: Not associated with Security Groups.
  • Public IP: Auto-assigned a public IP for internet access.
  • Availability: Follows the availability of the associated AZ.

Security Group (SG) vs Network ACL (NACL)


FeatureSecurity Group (SG)Network ACL (NACL)
TypeStatefulStateless
Default BehaviorAllows outbound by defaultAllows inbound/outbound by default
AssociationsCan be attached to multiple instancesApplies to subnets, impacting all instances
IP BlockingNot possibleCan block specific IPs
Evaluation OrderNo specific rule orderRules evaluated from lowest to highest number

Direct Connect

Direct Connect provides a dedicated network connection from your data center to AWS, ideal for high throughput workloads.

  1. Connects data centers directly to AWS.
  2. Suitable for high-throughput and low-latency applications.

VPC Endpoints

VPC Endpoints enable private connections to AWS services without needing an internet gateway, NAT device, VPN, or Direct Connect.

  • Service Access: Connects to AWS services without leaving the Amazon network.
  • Types:
    • Interface Endpoint: For most AWS services.
    • Gateway Endpoint: Specifically supports S3 and DynamoDB.

VPC Peering

VPC Peering connects two VPCs through a direct network route, allowing instances to communicate as if they were in the same network.

  • Allows VPC-to-VPC connections within the same or across AWS accounts.
  • Instances in peered VPCs behave as if in the same network.
  • No transitive peering (cannot route traffic through one VPC to another).
  • Can be established between regions.

PrivateLink simplifies the secure sharing of services across VPCs, eliminating the need for VPC Peering for certain services.

  1. Supports 1:1, 1:N, and N:N configurations across multiple customer VPCs.
  2. Not required to use VPC peering.
  3. Requires NLB (Network Load Balancer) for the service VPC endpoint in customer VPCs.

Transit Gateway

Transit Gateway connects multiple VPCs and on-premises networks through a central hub, simplifying network architecture.

  1. Uses route tables to control communication between VPCs.
  2. Integrates with Direct Connect and VPN.
  3. Supports IP multicast for routing multiple packets to multiple destinations.