Skip to content

VPC Summary

Links: 101 AWS SAA Index


Summary

  • CIDR: IP Range
  • VPC: Virtual Private Cloud => we define a list of IPV4 & IPV6 CIDR
  • Subnets: tied to an AZ, we define a CIDR
  • Internet Gateway: at the VPC level, provide IPV4 & IPv6 Internet Access
  • Route Tables: must be edited to add routes from subnets to the IGW, VPC Peering Connections, VPC Endpoints, ...
  • Bastion Host: public EC2 instance to SSH into, that has SSH connectivity to EC2 Instances in private subnets
  • NAT Instances: gives Internet access to EC2 instances in private subnets. Old, must be setup in a public subnet, disable Source / Destination check flag.
  • NAT Gateway: managed by AWS, provides scalable Internet access to private EC2 instances, IPv4 only
  • Private DNS + Route 53: enable DNS Resolution + DNS Hostnames (VPC)
  • NACL: stateless, subnet rules for inbound and outbound, don't forget Ephemeral Ports.
  • Security Groups: stateful, operate at the EC2 instance level.
  • Reachability Analyser: perform network connectivity testing between AWS resources
  • VPC Peering: connect two VPCs with non overlapping CID, non-transitive
  • VPC Endpoints: Private access to AWS Services (S3, DynamoDB, CloudFormation, SSM) within VPC.
  • VPC Flow Logs: can be setup at the VPC / Subnet / ENI Level, for ACCEPT and REJECT traffic, helps identifying attacks, analyse using Athena or CloudWatch Logs Insights
  • Site-to-Site VPN: setup a Customer Gateway on DC, a Virtual Private Gateway on VPC, and site-to-site VPN over public Internet.
  • AWS VPN CloudHub: hub-and-spoke VPN model to connect your sites.
  • Direct Connect: setup a Virtual Private Gateway on VPC, and establish a direct private connection to an AWS Direct Connect Location.
  • Direct Connect Gateway: setup a Direct Connect to many VPCs in different AWS regions.
  • AWS PrivateLink/VPC Endpoint Services:
    • Connect services privately from your service VPC to customers VPC
    • Doesn't need VPC Peering, public Internet, NAT Gateway, Route Tables
    • Must be used with Network Load Balancer & ENI
  • Transit Gateway: transitive peering connections for VPC, VPN & DX.
  • Traffic Mirroring: copy network traffic from ENIs for further analysis.
  • Egress-only Internet Gateway: like a NAT Gateway, but for IPV6.

Last updated: 2023-03-09