Virtual Private Gateway (VGW) ¶
A virtual private gateway establishes a connection to the cloud while creating a VPN tunnel
.
The AWS virtual private gateways come into the picture when we want to establish a VPN connection to Amazon VPC.
Where is VPG hosted?
The gateway on the customer(our) side is known as Customer Gateway
, and the gateway on the AWS side of the VPN tunnel is named Virtual Private Gateway
.
AWS Virtual Private Gateway establishes a secure connection between your on-premises server and cloud-hosted VPC. On establishing this connection, you get access to all the resources of your AWS VPC using its private IP address from your on-premises data center.
Use transit gateway in case of multiple VPC's
A transit gateway is a transit hub that you can use to interconnect your VPCs and your on-premises networks. For more information, see Amazon VPC Transit Gateways. You can create a Site-to-Site VPN connection as an attachment on a transit gateway.
The following diagram shows a VPN connection between multiple VPCs and your on-premises network using a transit gateway. The transit gateway has three VPC attachments and a VPN attachment.