Transit Gateway v/s Direct Connect v/s Site-to-Site VPN
Letโs discuss about VPC today, we all must have heard of Transit gateway, Direct Connect and Site-to-Site VPN, all of these seem to sound similar, but whatโs the difference between them?
A ๐ง๐ฟ๐ฎ๐ป๐๐ถ๐ ๐๐ฎ๐๐ฒ๐๐ฎ๐ is a central hub by which you can connect VPCs and on-premises networks within the AWS environment.
๐๐ถ๐ฟ๐ฒ๐ฐ๐ ๐๐ผ๐ป๐ป๐ฒ๐ฐ๐ does this by creating a direct, dedicated private connection with your on-premises network and AWS.
Creating a ๐ฆ๐ถ๐๐ฒ-๐๐ผ-๐ฆ๐ถ๐๐ฒ ๐ฉ๐ฃ๐ก creates an encrypted over-the-public-internet โtunnelโ to associate your on-premises network with a single AWS VPC.
So, in fact, a Transit Gateway provides for managing multiple VPCs and on-premises networks connections, with Direct Connect offering a direct, high-bandwidth connection, and a Site-to-Site VPN is a fundamental connection using the public Internet for a single VPC link.
๐๐ฒ๐ ๐ฑ๐ถ๐ณ๐ณ๐ฒ๐ฟ๐ฒ๐ป๐ฐ๐ฒ๐:
๐๐๐ป๐ฐ๐๐ถ๐ผ๐ป๐ฎ๐น๐ถ๐๐:
๐ง๐ฟ๐ฎ๐ป๐๐ถ๐ ๐๐ฎ๐๐ฒ๐๐ฎ๐ : It is central to make the different VPCs and on-premises network connect to each other; it simplifies network management.
๐๐ถ๐ฟ๐ฒ๐ฐ๐ ๐๐ผ๐ป๐ป๐ฒ๐ฐ๐ : Dedicated and private connection that connects your on-premises network to AWS with high bandwidth with minimal latency.
๐ฆ๐ถ๐๐ฒ-๐๐ผ-๐ฆ๐ถ๐๐ฒ ๐ฉ๐ฃ๐ก : An encrypted tunnel across the public internet which interconnects your on-premises network to an AWS VPC.
๐ฆ๐ฐ๐ฎ๐น๐ฎ๐ฏ๐ถ๐น๐ถ๐๐
๐ง๐ฟ๐ฎ๐ป๐๐ถ๐ ๐๐ฎ๐๐ฒ๐๐ฎ๐: It is highly scalable, thus allowing easy addition of new VPCs or on-premises network connections.
๐๐ถ๐ฟ๐ฒ๐ฐ๐ ๐๐ผ๐ป๐ป๐ฒ๐ฐ๐: Highly scalable depending on the chosen bandwidth tier.
๐ฆ๐ถ๐๐ฒ-๐๐ผ-๐ฆ๐ถ๐๐ฒ ๐ฉ๐ฃ๐ก: Not as scalable as Direct Connect because it is restrained by public internet bandwidth.
๐ฆ๐ฒ๐ฐ๐๐ฟ๐ถ๐๐:
๐ง๐ฟ๐ฎ๐ป๐๐ถ๐ ๐๐ฎ๐๐ฒ๐๐ฎ๐: It is secure in the AWS infrastructure, but on the on-premises connection, there would rely on extra security measures.
๐๐ถ๐ฟ๐ฒ๐ฐ๐ ๐๐ผ๐ป๐ป๐ฒ๐ฐ๐: Very secure since it is based on a dedicated private connection.
๐ฆ๐ถ๐๐ฒ-๐๐ผ-๐ฆ๐ถ๐๐ฒ ๐ฉ๐ฃ๐ก: Relies on encryption to protect traffic across the internet.
๐ช๐ต๐ฒ๐ป ๐๐ผ ๐๐๐ฒ ๐ฒ๐ฎ๐ฐ๐ต:
๐ง๐ฟ๐ฎ๐ป๐๐ถ๐ ๐๐ฎ๐๐ฒ๐๐ฎ๐:
You want to connect multiple VPCs and on-premises networks with complex routing requirements.
๐๐ถ๐ฟ๐ฒ๐ฐ๐ ๐๐ผ๐ป๐ป๐ฒ๐ฐ๐:
You want a high-bandwidth, dedicated private connection to AWS for large data transfers.
๐ฆ๐ถ๐๐ฒ-๐๐ผ-๐ฆ๐ถ๐๐ฒ ๐ฉ๐ฃ๐ก:
You want a simple way to connect a single on-premises network to an AWS VPC with smaller data volumes.
Subscribe to my newsletter
Read articles from Saloni Singh directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Saloni Singh
Saloni Singh
โข A Software Engineer with hands-on experience in AWS and Aws DevOps โข Experience in CodePipeline using CodeCommit, CodeBuild and CodeDeploy โข Experience with Terraform, Gitlab, Kubernetes, AWS DevOps, Helm charts, Golang, Python and NodeJS โข Hands-on experience on AWS Migration projects including services - DMS, Glue, Aurora, Lambda, S3 โข Possesses good knowledge on Bash Shell Scripting and Python Programming