Networking · AWS SERVICE CHEATSHEET

AWS Virtual Private Gateway (VGW)

Terminates IPsec tunnels from customer gateways (CGWs) or private virtual interfaces (VIFs) from AWS Direct Connect, dynamically injecting on-premises CIDR routes into VPC Route Tables without transitive forwarding overhead.

Open Interactive VGW Sandbox → Simulate in Architecture Studio

AWS Container Placement

VPC

Summary

The Amazon-side VPN anchor and Direct Connect termination point attached directly to a single VPC perimeter, enabling dynamic BGP route propagation.

When to Use (SAA-C03)

Use for connecting on-premises to a single VPC; switch to Transit Gateway when connecting multiple VPCs.

Allowed Ingress Connections & Ports

Source ServiceProtocolPortArchitectural Rationale
VPNUDP / IPsec500, 4500Terminates IPsec IKE and NAT-Traversal traffic from Customer Gateways.
DIRECTCONNECTBGP / 802.1Q179Terminates Private Virtual Interfaces from AWS Direct Connect.

Allowed Egress Targets & Ports

Target ServiceProtocolPortData Flow Rationale
RTBBGP Route PropagationInternalInjects dynamic BGP routes into attached VPC Route Tables automatically.
EC2TCP / UDPAny configuredDelivers on-premises hybrid packets directly to private subnet EC2 instances.

Key Configuration Parameters & AWS Best Practices

ParameterFormat / ExamplePurpose & Rationale
amazonSideAsn (Required)64512Autonomous System Number (ASN) used for dynamic BGP peering on the Amazon side of the connection. Why: Configures BGP routing session negotiation with the on-premises router or Direct Connect gateway.
enableRoutePropagationtrueControls whether BGP learned routes from on-premises are automatically injected into associated VPC Route Tables. Why: Eliminates the operational overhead of creating manual static routes for every on-premises subnet.
attachedVpcIdvpc-01a2b3c4d5e6f7g8hThe target VPC identifier to which the Virtual Private Gateway is currently attached. Why: Enforces the AWS strict limit of exactly one VGW attachment per VPC.

Practice Labs Using AWS Virtual Private Gateway

SAA-C03-HYBRID-SPLIT-HORIZON-DNS

Hybrid Enterprise Networking: Split-Horizon DNS with Route 53 Resolvers

Deploy Route 53 Inbound and Outbound Resolver Endpoints in VPC subnets, associate the Private Hosted Zone, and…

Frequently Asked Questions

Where does AWS Virtual Private Gateway live inside an AWS VPC architecture?

Valid container placement: VPC. Terminates IPsec tunnels from customer gateways (CGWs) or private virtual interfaces (VIFs) from AWS Direct Connect, dynamically injecting on-premises CIDR routes into VPC Route Tables without transitive forwarding overhead.

When should I use AWS Virtual Private Gateway on the AWS SAA-C03 exam?

Use for connecting on-premises to a single VPC; switch to Transit Gateway when connecting multiple VPCs.

Can I simulate AWS Virtual Private Gateway packet routing without an AWS account?

Yes. CloudTracer simulates AWS Virtual Private Gateway along with 53 AWS services directly in your browser and exports production Terraform HCL.

More Networking Cheatsheets

App Load Balancer → Network Load Balancer → Virtual Private Cloud → VPC Subnet → VPC Route Table → Internet Gateway →