In this workshop, you will learn how to deploy a Fullstack Next.js 14 application with API Routes on AWS EC2, using DocumentDB as the database. This step-by-step guide will help you set up a complete AWS environment, including IAM, VPC, EC2, and DocumentDB, as well as test and deploy the application efficiently while ensuring security and scalability.
Understand how to create and configure EC2, DocumentDB, CloudFront, and IAM on AWS.
Deploy a Fullstack NextJS 14 application on EC2.
Connect and use DocumentDB from EC2, including migrating data from MongoDB to DocumentDB.
Learn how to configure CloudFront as a reverse proxy to accelerate API Routes of NextJS on EC2.
An AWS account with IAM access.
A computer with an SSH client (such as Terminal or PuTTY).
1. Client sends a request
2. CloudFront processes the request
3. EC2 processes the request
4. Querying data from Amazon DocumentDB
5. Returning results to the client
6. Managing access with IAM