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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |