🌐Seamless Network Connectivity - AWS Transit Gateway Deployment
Published: 2023-11-22 23:06:29

🚀 Introduction
In the dynamic realm of cloud infrastructure, the deployment of AWS Transit Gateway stands out as a revolutionary solution. This robust networking service enables seamless connectivity and efficient management of resources across multiple Amazon Virtual Private Clouds (VPCs). Join us on a journey where we unravel the intricacies of AWS Transit Gateway deployment, unlocking new possibilities for your organization's network architecture.

🎯 Objective

Our primary objective is to demystify the deployment process of AWS Transit Gateway, empowering organizations to build a flexible and scalable network infrastructure. From enhanced connectivity to simplified management, our exploration aims to equip you with the knowledge to optimize your network resources and elevate your cloud experience.


🚀 Use Case

Let's dive into a real-world scenario that demonstrates the tangible benefits of AWS Transit Gateway deployment for different departments within your organization.

Sales Department:
Imagine a scenario where the Sales team operates across various regions, each with its dedicated VPC. With AWS Transit Gateway, seamless communication is established between these VPCs, ensuring that sales applications and data are easily accessible. This not only enhances collaboration but also accelerates sales processes, contributing to increased efficiency and faster decision-making.

Marketing Department:
For the Marketing team, running campaigns often involves diverse applications and services distributed across different VPCs. AWS Transit Gateway streamlines the connectivity, allowing marketing resources to interact effortlessly. Whether it's accessing analytics data or coordinating marketing tools, the deployment ensures a unified and efficient network, boosting overall productivity.

HR Department:
In the HR domain, privacy and secure communication are paramount. AWS Transit Gateway facilitates a secure network environment, ensuring that HR-related applications and databases are interconnected with enhanced security measures. This ensures confidential employee data is transmitted securely, aligning with compliance standards and bolstering data integrity.

This use case exemplifies how AWS Transit Gateway deployment caters to the distinct needs of various departments within your organization, fostering collaboration, security, and efficiency.

#Transit Gateway Features:

Hub and Spoke Architecture:

Description: AWS Transit Gateway follows a hub-and-spoke architecture, allowing centralized connectivity and management.
Global Reach:

Description: Transit Gateway supports a global network that spans multiple AWS Regions, providing a unified and scalable solution.
Inter-Region Peering:

Description: Facilitates peering between Transit Gateways in different regions, enabling seamless communication across regions.
VPN and Direct Connect Attachment:

Description: Connects remote networks using VPN and AWS Direct Connect, providing secure and reliable communication.
Routing Control:

Description: Offers flexible and granular routing control, allowing customization of the traffic flow within the network.
Network Manager Integration:

Description: Integrates with AWS Network Manager, simplifying the management of global networks and providing a centralized view.
Scale Out:

Description: Scales horizontally to accommodate a growing number of VPCs and on-premises networks, ensuring scalability.
Security Integration:

Description: Seamlessly integrates with AWS security features, allowing the enforcement of security policies across the network.
CloudWatch Metrics and Monitoring:

Description: Provides CloudWatch metrics for monitoring network performance and enabling proactive management.
Resource Group Tagging:

Description: Supports resource group tagging, making it easier to organize and manage resources within the Transit Gateway.
Multicast Support:

Description: Enables multicast traffic support, allowing the transmission of data to multiple recipients simultaneously.
Centralized Network Inspection:

Description: Facilitates centralized network inspection and monitoring for enhanced visibility and control.
Transit Gateway Connect:

Description: Introduces Transit Gateway Connect for simplified VPN connectivity and better traffic engineering capabilities.
VPC Ingress Routing:

Description: Offers VPC Ingress Routing, allowing for more granular control over the egress path of traffic leaving a VPC.



🛠️ Solution Diagram

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p1jjgaorrm0l5c5gnyn7.png)

Tools & Technologies Covered:
 
1. AWS cloud
2. AWS vpc
3. AWS subnets
4. AWS internet gateway
5. AWS route tables
6. AWS security groups
7. AWS EC2 machine
8. Transit Gateway

------------------------------------------------------------------
TRANSIT GATEWAY DEPLOYMENT       
------------------------------------------------------------------

1.	Create VPCs
2.	Create Subnets
3.	Create internet gateway
4.	Attach internet gateway to VPCs
5.	Create route tables
•	Subnet association
•	Add route entries
6.	Create security groups
7.	Transit gateway
•	Create transit gateway
•	Attach VPCs to transit gateway
•	Add routes between transit gateway and vpcs
•	Launch EC2 webservers in each vpcs
•	Test the transit gateway connectivity


Create VPCs

VPC	VPC CIDR Block	Availability Zone	Availability Zone CIDR Block	
VPC-01-HR	20.0.0.0/16	Us-east-1a	20.0.0.0/24	
				
VPC-02-SALES	192.168.0.0/16	Us-east-1a	192.168.0.0/24	
				
VPC-03-MRKT	172.10.0.0/16	Us-east-1a	172.10.0.0/24	


Create VPC-01-HR

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6d7q3osyaf11rx7nkfuj.png)

Create VPC-02-SALES


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h0hdcwxrzejkygqx1rq7.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d6q6unyy3dgo0lp0rxtb.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hyri4yrvu1yewo64sl77.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y2ef5xnmg0xxxh1m2yq4.png)


Create Subnets

VPC	VPC CIDR Block	Availability Zone	Availability Zone CIDR Block	
VPC-01-HR	20.0.0.0/16	Us-east-1a	20.0.0.0/24	
	Public-subne01-HR	Us-east-1a	20.0.1.0/24	
	Private-subnet02-HR	Us-east-1b	20.0.2.0/24	
VPC-02-SALES	192.168.0.0/16	Us-east-1a	192.168.0.0/24	
	Public-subnet01-SALES	Us-east-1a	192.168.1.0/24	
	Private-subnet02-SALES	Us-east-1b	192.168.2.0/24	
VPC-03-MRKT	172.10.0.0/16	Us-east-1a	172.10.0.0/24	
	Public-subnet01-MRKT	Us-east-1a	172.10.1.0/24	
	Private-subnet02-MRKT	Us-east-1b	172.10.2.0/24	


VPC-01-HR	20.0.0.0/16	Us-east-1a	20.0.0.0/24
	Public-subne01-HR	Us-east-1a	20.0.1.0/24
	Private-subnet02-HR	Us-east-1b	20.0.2.0/24

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2o7dqks8r34r39lzyu58.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rtg0e85lejkx8ril4jk3.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rp18380zkz5xhaf1787h.png)

VPC-02-SALES	192.168.0.0/16	Us-east-1a	192.168.0.0/24
	Public-subnet01-SALES	Us-east-1a	192.168.1.0/24
	Private-subnet02-SALES	Us-east-1b	192.168.2.0/24

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5e7d3ueqr1yegj4pyy8k.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/spn2hn748y5okxfcry6d.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/036tt5x4d7jmblmsgo2q.png)

VPC-03-MRKT	172.10.0.0/16	Us-east-1a	172.10.0.0/24
	Public-subnet01-MRKT	Us-east-1a	172.10.1.0/24
	Private-subnet02-MRKT	Us-east-1b	172.10.2.0/24


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0s0pjuiijx43dxi14kgq.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/imqanqlg4daf8zr2m256.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u9lo0361t3borqxt98nb.png)
Create Internet gateway

Internet Gateway	VPC-01-HR	IGW01-HR	172.10.0.0/24
	VPC-02-SALES	IGW02-SALES	172.10.1.0/24
	VPC-03-MRKT	IGW03-MRKT	172.10.2.0/24

VPC-01-HR	IGW01-HR

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wkuv6kvrdoxaszxw34pd.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dq5xo91hjksz4kfr68zr.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9rsbwuimj2yub8ecdcg2.png)

VPC-02-SALES	IGW02-SALES

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vqkyzm7u4ftqv6vuwgkf.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8d0rpcmevexzglka4546.png)
Attach to VPC

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r8hrpcx990pcits1e8pk.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/laodcx72xdxme2j572pr.png)
VPC-03-MRKT	IGW03-MRKT	172.10.2.0/24
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9amut4yosr1ki7vs5loz.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ts5o13dtovg9eq1xg7m.png
)

Attached to VPC


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h64bsjng88qnqv0r4nrh.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7qcfd06miuytkz3ress7.png)
Create Route tables


VPC	Route Tables
VPC-01-HR	Public-RT01-HR
VPC-02-SALES	Public-RT02-SALES
VPC-03-MRKT	Public-RT03-MRKT

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/07qwii6thtqpnfp0i4mj.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7nv2y0gjsooxkzlm6z31.png)
Edit routes – Add IGW


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1p0dokpb01ntu1ub0swx.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h87u6jl9rae7t3e5hf7p.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/03i31ez5wnkkf5pt1ezi.png)
Subnet Association

Associate public HR subnet

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o9tt9uerlgiqxtb29h3i.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0h83lt516pzcnh4a6i70.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vibuzkcqc51bfgo7hvle.png)
Create Public-RT02-SALES


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wwqt0zsxt5hg7r758026.png)
Add IGW

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mmt982t0kqdq7ddhn478.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c8j5ofo4lzah2bpobi25.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/19hkjejlcgj89jix0meu.png)
Subnet Association:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1oseli93ukfthtnqvfnv.png)
Associate public subnet

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5dsbo3c1n5xg4cjgvoae.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nntohfmp0fo9t55m9qd7.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/umtq5pec1edm4mi0uxyq.png)

Create Route Public-RT03-MRKT

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y9atyb6tzxi89wxsut7o.png)

Add igw

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ecpa2a4mo6d5hqfbmud5.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n40e1qpnnzs9p7yaoosf.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hi6vx7vhlb7fwsaw6m0k.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7udbwfzx3pfbee8w24vz.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qfb1q5cwd59hsrvzkbhl.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cycs5lavvstt1ox8i2v8.png)
Three route tables created


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3wdx8piqdxgw73mytf2h.png)
Create Transit gateway

Transit gateway: prafect-tgw

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/glhqxza92ssjjkgsk9jp.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rzucf33si4hpga3xx4ll.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m11a880iaminwbofhwbi.png)
Create Transit gateway attachments: 
Attachment01: VPC01-HR

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mipyy6oq12xe2b62iodp.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3s1nrgz4qw6on88kbinp.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/utebmhcguxpn509ujb7m.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bgsioap81r2ugve26lm2.png)

Attachment02: VPC02-SALES


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/csoyan5k651hfhpjrpjb.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tbgq18k8eo58xz27f96g.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/il7fzxfmsgmorzu53sb2.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kk60e16mhib3m19oqir0.png)
Attachment02: VPC03-MRKT

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yixeijqgp18kb29hckui.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/flo175765rrw51g0rltd.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t5msggfdnqxobj1017vq.png)
Association

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4jer6nhxygb2zoazh1pk.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ao0mpx2q0zum9i2y5wa.png)
Propagations
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u2y7lgq120dgnzif6hnb.png)

Routes

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uh7hz3lkzvmo7ogvwi3s.png)
Update Route Tables of VPCs
VPC	VPC CIDR Block	Availability Zone	Availability Zone CIDR Block	
VPC-01-HR	20.0.0.0/16	Us-east-1a	20.0.0.0/24	
VPC-02-SALES	192.168.0.0/16	Us-east-1a	192.168.0.0/24	
VPC-03-MRKT	172.10.0.0/16	Us-east-1a	172.10.0.0/24	

Add cross routes for VPC01-HR
Go to Route Table : public-RT01-HR
Add TGW routes for VPC02-SALES and VPC03-MRKT

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q3wktkv6ssipg3n383m0.png)
VPC-02-SALES	192.168.0.0/16

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p39fhvekyg20vni8e9lg.png)


VPC-03-MRKT	172.10.0.0/16

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wttgkgorcj2gx4ahe3tk.png)
Add Cross route for VPC02-SALES

Select VPC02-SALES
Add routes for VPC01-HR and VPC03-MRKT
VPC-01-HR	20.0.0.0/16	Us-east-1a	20.0.0.0/24
VPC-03-MRKT	172.10.0.0/16	Us-east-1a	172.10.0.0/24

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cyu957pl7ae8mqlzjd4y.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bekepjgymq9yiuv4ezl3.png)
Cross routes added

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hlwyvqzxiodqg6el0u4q.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n3x10ek9orhhsi0pa6hv.png)
VPC	VPC CIDR Block	Availability Zone	Availability Zone CIDR Block	
VPC-01-HR	20.0.0.0/16	Us-east-1a	20.0.0.0/24	
VPC-02-SALES	192.168.0.0/16	Us-east-1a	192.168.0.0/24	
				
Select Route table VPC-3-MRKT

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/egf381a3j1c03fw0u6in.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qu1f726yuvxfo7zg3igu.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f29d1zyc74ns22o0z94x.png)
Cross route added

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4grbpwnvz9uz1gx8qjan.png)
Create Security Groups:

VPC01-HR
Security Group: Public-SG01-HR

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xg7o05a9pouq4wnw3ssx.png)
Add rule:

Rule 1: All SSH ,  22, source: 0.0.0.0/0 
 Rule 2:  All ICMP, All,  source: 0.0.0.0/0

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p37b8a5h1o04fr5603qe.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0g7snjy7fd1ku71j3r5e.png)
VPC02-SALES
Security Group: Public-SG02-SALES

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4fjttbjqshv1u9l2euo8.png)
Add rules:
Rule 1: All SSH ,  22, source: 0.0.0.0/0 
 Rule 2:  All ICMP, All,  source: 0.0.0.0/0

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ringdahls0496qgaikee.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s7y7exp6ray6uah30rrv.png)
VPC02-MRKT
Security Group: Public-SG03-MRKT

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yck9l6ukefwy0ec9s87u.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z5khkqpm3nptldtwids4.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mgod4vf060wfxsnael4o.png)
Launch EC2 machines in each VPC’s

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fe0jzcuyl5idmee9t1ob.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sg70n99khlb2kgnqbiyp.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j2j43dbm1564ticmd17q.png)
Repeat the same steps for VPC02-SALES & VPC03-MRKT

Launch webserver02-SALES

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g21kbp5yd61fhu6fkkn1.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b604r022etlekwu8t9d0.png)
Launch webserver03-MRKT

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2h0bpw4tc4gquimxzb15.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4yh0g4vzokkds5ecii10.png)
All EC2 webservers launched

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sothtreaj13lp1540oqb.png)
Verify the Connectivity from All VPC’s Webservers with each other
Check connectivity via TGW

Connect to EC2 webserver01-HR from VPC01-HR 
Ping private IPs of VPC02-SALES – webserver02-SALES and VPC03-MRKT-webserver03-MRKT

Open webserver01-HR and connect

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w6qwkuqvbv3ppedfsm67.png)
Click Connect

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e00i8tn4rqldtfw65uey.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/arfs9j1c2nuqab8rni93.png)
Get the Private IPs of both the webservers

Webserver02-SALES 
Private ip: 192.168.1.173

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k6kapv9sja9cjjw99j6t.png)
Test the connection: Test 1 – From VPC01-HR to VCP02-SALES
Expected: The ping should return the ICMP response
 
Ping 192.168.1.173

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8veiwoh43znf9go3l64t.png)
Actual: The ping has returned the ICMP response

Ping successful to private ip from webserver01-HR to webserver02-SALES which are on two different departments’ VPC’s and connected through TGW
-------------------------------------------------------------------------------------------------------------------

Webserver03-MRKT
Private ip: 172.10.1.155

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/amp1ju55veb0n7tadimb.png)
Test the connection: Test 2 – From VPC01-HR to VCP02-MRKT

Expected: The ping should return the ICMP response
 
Ping 172.10.1.155

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hg2x6n0wx6yn6y7y7gik.png)
Actual: The ping has returned the ICMP response

Ping successful to private ip from webserver01-HR to webserver03-MRKT which are on two different departments’ VPC’s and connected through TGW
----------------------------------------------------------------------------------------------------------------

Connect to EC2 webserver02-SALES from VPC02-SALES
 

Ping private IPs of VPC01-HR – webserver01-HR and VPC03-MRKT-webserver03-MRKT

Open webserver02-SALES and connect

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0bbzponchwd19mi3h4sx.png)
Click to Connect

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lluj282s2mlnzhwm74zw.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0ref5l9rml6akst0gg63.png)

Webserver01-HR
Private ip: 20.0.1.139

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p6ll5de1h3it789y9t2b.png)
Test the connection: Test 1 – From VPC02-SALES to VCP01-HR

Expected: The ping should return the ICMP response
 
Ping 20.0.1.139

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6iywv213m985tdlakhxa.png)

Actual: The ping has returned the ICMP response

Ping successful to private ip from webserver02-SALES to webserver01-HR which are on two different departments’ VPC’s and connected through TGW
----------------------------------------------------------------------------------------------------------------------


Webserver03-MRKT
Private ip: 172.10.1.155

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vo4txzmvbsn224ihdbbo.png)

Test the connection: Test 2 – From VPC02-SALES to VCP02-MRKT

Expected: The ping should return the ICMP response
 
Ping 172.10.1.155

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/32odvc048di5ba9ap1v7.png)

Actual: The ping has returned the ICMP response

Ping successful to private ip from webserver02-SALES to webserver03-MRKT which are on two different departments’ VPC’s and connected through TGW

Clean up project


In conclusion, the deployment of AWS Transit Gateway stands as a pivotal solution that seamlessly connects and manages the networking needs of various departments, including Sales, Marketing, and HR. This robust infrastructure allows for efficient communication, data transfer, and collaboration across the organization's different segments. By leveraging the power of AWS Transit Gateway, businesses can achieve enhanced scalability, simplified network management, and improved overall performance. As we navigate the evolving landscape of cloud technologies, embracing solutions like AWS Transit Gateway becomes integral to fostering a more connected, streamlined, and future-ready enterprise. Here's to unlocking the full potential of network architecture and paving the way for innovation in the digital era. 


Connect with me on these platforms and stay updated with the latest in Cloud/DevOps technology and development! 🚀🔗😊

🌐 **Website:** [praful.cloud](https://www.praful.cloud) 🚀  
🔗 **LinkedIn:** [Connect with me on LinkedIn](https://linkedin.com/in/prafulpatel16) 🤝  
💻 **GitHub:** [Explore my projects on GitHub](https://github.com/prafulpatel16/prafulpatel16) 📂  
🎥 **YouTube:** [Check out my tech tutorials on YouTube](https://www.youtube.com/@prafulpatel16) 🎬  
📝 **Medium:** [Read my tech articles on Medium](https://medium.com/@prafulpatel16) 📚  
🔗 **Dev.to:** [Follow me on Dev.to for cloud/devops-centric content](https://dev.to/prafulpatel16) 🖥️  


#AWSCommunityBuilders #CloudEngineering #CloudComputing #AmazonWebServices #AWSArchitecture #DevOps #CloudSolutions #CloudSecurity #InfrastructureAsCode #AWSCertification #Serverless #AWSCommunity #TechBlogs #CloudExperts #CloudMigration #CloudOps #AWSJobs #TechIndustry #CareerInTech #InnovationInCloud #devops #cloudengineerjobs #devopsjobs #azure #gcp #oci #cloudjobs #kubernetes