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.
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 Service | Protocol | Port | Architectural Rationale |
|---|---|---|---|
| VPN | UDP / IPsec | 500, 4500 | Terminates IPsec IKE and NAT-Traversal traffic from Customer Gateways. |
| DIRECTCONNECT | BGP / 802.1Q | 179 | Terminates Private Virtual Interfaces from AWS Direct Connect. |
Allowed Egress Targets & Ports
| Target Service | Protocol | Port | Data Flow Rationale |
|---|---|---|---|
| RTB | BGP Route Propagation | Internal | Injects dynamic BGP routes into attached VPC Route Tables automatically. |
| EC2 | TCP / UDP | Any configured | Delivers on-premises hybrid packets directly to private subnet EC2 instances. |
Key Configuration Parameters & AWS Best Practices
| Parameter | Format / Example | Purpose & Rationale |
|---|---|---|
| amazonSideAsn (Required) | 64512 | Autonomous 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. |
| enableRoutePropagation | true | Controls 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. |
| attachedVpcId | vpc-01a2b3c4d5e6f7g8h | The 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
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.