Skip to content

Instantly share code, notes, and snippets.

View Parth909's full-sized avatar
πŸš€
😎 .-.. .. ...- . / - --- / .-.. . .- .-. -.

Parth Bhoir Parth909

πŸš€
😎 .-.. .. ...- . / - --- / .-.. . .- .-. -.
View GitHub Profile
@rmiyazaki6499
rmiyazaki6499 / deploy-mern.md
Last active June 24, 2024 15:47
Deploying a Production ready React-Express app on AWS EC2 with CI/CD

Deploying a Production ready React-Express app on AWS

In this tutorial, I will be going over to how to deploy a Javascript app from start to finish using AWS and EC2. Recently, my partner Tu and I launched our app AlgoAcademy (a resource for reviewing algorithms and data structures) and we wanted to share with other developers some of the lessons we learned along the way.

Following this tutorial, you will have an application that has:

  • A React frontend, Express backend
  • An AWS EC2 server configured to host your application
  • SSL-certification with Certbot
  • A custom domain name
variable "sdd_snapshot_description" {
description = "This is the description that will be used to identify the snapshots of our data volume. We will filter against this value."
default = "sdd-data-snapshot"
}
provider "aws" {}
// Get the latest version of our /dev/sdd snapshot
data "aws_ebs_snapshot" "sdd_snapshot" {
most_recent = true