aws
ServerVault | Persistent File Storage on AWS EC2 with Amazon EBS
This project demonstrates how to deploy a Node.js file storage application on an Ubuntu AWS EC2 instance while using a separate Amazon Elastic Block Store (EBS) volume to store uploaded files persistently. It separates application code from user data and ensures that files remain available after an EC2 instance reboot.
About this project
ServerVault is a file storage application built with Node.js and Express.js that allows users to upload, list, download, and delete files. The application runs on an AWS EC2 instance, while file data is stored on a dedicated, encrypted EBS volume mounted at /mnt/servervault.
I configured Nginx as a reverse proxy to forward HTTP requests to the Node.js application, which runs internally on port 8000. I also used PM2 to manage the application process and configured Linux filesystem permissions and /etc/fstab to mount the EBS volume automatically after a server reboot. A storage monitoring API provides information about total, used, and available disk space.
## What I implemented
* Deployed a Node.js and Express.js file storage application on an Ubuntu AWS EC2 instance.
* Created, attached, formatted, and mounted a dedicated Amazon EBS volume for persistent file storage.
* Configured /etc/fstab using the EBS filesystem UUID to automatically mount storage after reboot.
* Set up Nginx as a reverse proxy to route HTTP requests to the Node.js application without exposing its application port publicly.
* Used PM2 to manage the Node.js process and configure automatic startup after server reboot.
* Implemented file upload, listing, download, and deletion functionality using Express.js APIs.
* Created a storage monitoring endpoint to report total capacity, used space, available space, and storage utilization.
* Verified file persistence and application availability after rebooting the EC2 instance.
## Technologies & Services
Amazon EC2 · Amazon EBS · Ubuntu Linux · Node.js · Express.js · Nginx · PM2 · Bash · Linux Filesystems · SSH · AWS Security Groups
## Key Takeaway
This project strengthened my practical understanding of AWS compute and persistent storage, Linux disk management, reverse proxy configuration, and production application deployment. The key outcome was separating application data from the EC2 root filesystem and configuring persistent EBS mounting so that uploaded files remain available after a server reboot.