Accessing AWS Services over AWS PrivateLink Using VPC Endpoints
Accessing AWS Services over AWS PrivateLink Using VPC Endpoints

CLOUD LABS

Accessing AWS Services over AWS PrivateLink Using VPC Endpoints

In this Cloud Lab, you’ll deploy a back-end server and a front-end application in two different VPCs, allowing them to communicate using AWS PrivateLink.

10 Tasks

intermediate

2hr

Certificate of Completion

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

Learning Objectives

A thorough understanding of AWS PrivateLink
Hands-on experience configuring a Network Load Balancer and target groups
Hands-on experience accessing EC2 instances in private subnets using EC2 Instance Connect Endpoint
Hands-on experience connecting two VPCs using a private link

Technologies
AWS logoAWS
PrivateLink
VPC
EC2
NLB
S3
Cloud Lab Overview

AWS PrivateLink, a highly available service, allows users to create private connections between VPCs and other AWS services without exposing them to the public internet. This means that a service inside a VPC can be exposed privately to another VPC without using public IP addresses, NAT devices, or internet gateways.

In this Cloud Lab, you’ll first create an S3 bucket and upload an image in this bucket using AWS SDK for Python. You’ll then configure a VPC and launch an EC2 instance in the private subnet of this VPC. You’ll use the EC2 Instance Connect Endpoint to deploy our back-end server in this instance. You’ll also create a target group and attach it to a Network Load Balancer inside this VPC.

Finally, you’ll deploy a React application inside another VPC and create a VPC endpoint and a service endpoint to connect it to your back-end server by establishing a PrivateLink. Your React application will use this PrivateLink to fetch the image uploaded in your S3 bucket.

After completing this Cloud Lab, you’ll have a thorough understanding of AWS PrivateLink and will be able to configure various VPC endpoints according to your requirements.

The following is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab:

Architecture diagram
Architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
2.Create the Required Resources
Create an S3 Bucket
Configure VPCs
3.Setup the Backend Server
Launch EC2 Instances
Deploy the Back-End Server
4.Create an Endpoint Service
Create a Network Load Balancer
Configure an Endpoint Service
5.Put It All Together
Deploy a React Application
6.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.

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