Connecting Multiple VPCs Using Transit Gateway

Connecting Multiple VPCs Using Transit Gateway
Connecting Multiple VPCs Using Transit Gateway

CLOUD LABS



Connecting Multiple VPCs Using Transit Gateway

In this Cloud Lab, you’ll learn how to connect multiple VPCs using AWS Transit Gateway, deploy a React app across VPCs, create instances, and efficiently route traffic.

8 Tasks

beginner

2hr

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

An understanding of AWS Transit Gateway
Proficiency in traffic routing between VPCs using AWS Transit Gateway
Hands-on experience connecting frontend and backend VPCs of a web application

Technologies
VPC logoVPC
EC2 logoEC2
Cloud Lab Overview

AWS Transit Gateway is a service that allows us to connect multiple VPCs. A single transit gateway acts as a central hub that connects to the VPCs through transit gateway attachments and allows traffic to flow through it.

In this Cloud Lab, you’ll deploy a React application with frontend and backend in different VPCs. You’ll start by creating two VPCs for the frontend and backend of the application. Next, you’ll create a transit gateway and transit gateway attachments to connect the frontend and backend VPC to the transit gateway. Once the network is established, you’ll launch an instance in frontend VPC with a React application. You’ll then create a backend instance and deploy a MySQL database. Finally, you’ll test the application to check if the frontend VPC can route traffic to the backend VPC and fetch the data from the MySQL database backend instance to display on the application’s frontend.

As you complete this Cloud Lab, you’ll be well equipped to connect multiple VPCs using transit gateway and route traffic between them. The architecture diagram below shows the final infrastructure that you’ll build in this Cloud Lab:

Connecting multiple VPCs using AWS Transit Gateway
Connecting multiple VPCs using AWS Transit Gateway

Cloud Lab Tasks
1.Introduction
Getting Started
2.Setting Up VPCs
Create VPCs
Create Transit Gateway
Update Route Tables
3.Setting Up the Application
Launch the Backend Instance
Launch the Frontend Instance
4.Conclusion
Clean Up
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image