AWS Builder Center

Building My Own Private Cloud Storage Platform Using AWS

From application development to AWS deployment: My journey of building a private, secure, and self-managed cloud storage system.

Introduction

Cloud storage has become an essential part of our digital lives. Services such as Google Drive and Dropbox make storing and accessing files convenient, but I wanted to explore something different.
What if I could build and manage my own private cloud storage platform using AWS?
This idea led me to develop KaziVault, a personal private cloud storage platform designed to provide secure file management, controlled access, and cloud-based infrastructure.
Rather than simply using an existing cloud storage service, I wanted to understand the engineering behind building one.

1. The Idea Behind KaziVault

KaziVault is designed as a personal cloud storage platform where users can upload, manage, and retrieve their files through a web application.
The main objectives are:
  • Build a private cloud storage environment.
  • Store files using Amazon S3.
  • Implement secure backend APIs.
  • Explore encryption and key management.
  • Deploy the application on AWS infrastructure.
  • Manage the application using Docker and Nginx.
  • Establish a foundation for automated deployment and future Kubernetes integration.
The project helped me explore how multiple cloud services can work together to build a real-world application.

2. Technology Stack

I selected technologies based on their flexibility, scalability, and relevance to modern cloud engineering.

Frontend

  • Next.js
  • React.js
  • TypeScript

Backend

  • NestJS
  • Node.js
  • REST APIs

Database and Authentication

  • Supabase
  • PostgreSQL
  • Supabase Authentication

AWS Infrastructure

  • Amazon EC2 for application hosting.
  • Amazon S3 for file storage.
  • AWS Key Management Service (KMS) for encryption key management.
  • AWS Secrets Manager for sensitive configuration and secret management.

DevOps and Deployment

  • Docker
  • Docker Compose
  • Nginx
  • Linux
  • HTTPS with Let's Encrypt
  • GitHub for source code management

3. Understanding the Architecture

KaziVault follows a frontend-backend architecture.
The frontend provides the user interface for managing files, while the NestJS backend handles application logic, authentication, and communication with AWS services.
The main architecture includes:
Frontend: Next.js provides the user-facing application.
Backend: NestJS exposes APIs for file operations and authentication.
Database: Supabase PostgreSQL stores application metadata.
Object Storage: Amazon S3 provides cloud-based file storage.
Encryption Management: AWS KMS supports encryption key management.
Secret Management: AWS Secrets Manager provides a dedicated service for managing sensitive secrets.
This separation makes the application easier to maintain and extend.

4. Exploring Secure File Storage

One of the most interesting engineering challenges in KaziVault is designing a secure file storage workflow.
The project explores an encryption architecture using AES-256 encryption and AWS KMS.
The intended file-handling workflow is:
  1. A file is selected in the browser.
  1. The browser generates an encryption key.
  1. The file is encrypted before being uploaded.
  1. The encrypted file is sent to the backend.
  1. The backend uses AWS services for key management.
  1. The encrypted file is stored in Amazon S3.
  1. File metadata is maintained in Supabase.
The separation of encrypted file content, metadata, and encryption key management is an important part of the platform's security design.
It also gave me a practical opportunity to understand how encryption, cloud storage, and key management fit together.

5. Deploying KaziVault on AWS EC2

After developing the application, I moved towards deploying it on an AWS EC2 instance.
I used Docker to containerize the frontend and backend separately.
The deployment architecture includes:
  • Frontend container running on its application port.
  • Backend container exposing its API.
  • Docker Compose for managing services.
  • Nginx as a reverse proxy.
  • Let's Encrypt for HTTPS configuration.
This allowed me to run the application in a production-style cloud environment.

6. A Real Deployment Challenge: HTTPS and Mixed Content

One of the most valuable lessons came during the HTTPS deployment.
The application was accessible over HTTPS, but the login functionality was not working correctly.
After troubleshooting, I discovered that the frontend was still making API requests using an HTTP backend URL.
This created a mixed-content problem because browsers block insecure HTTP requests from secure HTTPS pages.
I resolved the issue by:
  1. Identifying the incorrect backend URL.
  1. Updating the frontend environment configuration.
  1. Configuring the backend API through the Nginx reverse proxy.
  1. Rebuilding the frontend Docker image.
  1. Restarting the application containers.
  1. Testing the login functionality again.
This experience taught me that frontend environment variables, DNS, reverse proxies, HTTPS, and Docker image builds are closely connected during production deployment.

7. Monitoring and Audit Logging

Another important aspect of KaziVault is understanding application activity.
The backend includes audit logging for important operations, such as login and file download events.
This provides a foundation for tracking application activity and improving accountability.
It also helped me understand why monitoring and audit trails matter in applications that manage private user data.

8. Current Deployment Status

The first deployment phase of KaziVault is complete.
The application is running on AWS EC2 using Docker containers, with Nginx handling reverse proxy traffic and HTTPS configured.
The backend initializes its integrations with Supabase and AWS services, and the application has successfully handled authentication and file-related operations.
This milestone gave me practical experience beyond local development and helped me understand the challenges of deploying and maintaining a cloud-hosted application.

9. What's Next?

I am planning to extend KaziVault with more advanced DevOps and cloud engineering capabilities.
My future development goals include:
  • Building CI/CD pipelines using Jenkins.
  • Automating Docker image builds and deployments.
  • Exploring Amazon ECR for container image management.
  • Implementing Kubernetes-based deployment.
  • Improving application monitoring and observability.
  • Strengthening security and infrastructure automation.
  • Exploring Terraform for Infrastructure as Code.
These improvements will help me understand how to move from manually managed deployments towards automated cloud-native infrastructure.

Conclusion

KaziVault started as a personal idea: building my own private cloud storage platform.
During development, it became an opportunity to explore full-stack engineering, AWS infrastructure, Docker, HTTPS, encryption architecture, and production deployment.
The most valuable part of this project was not just getting an application running, but understanding the infrastructure and engineering decisions behind it.
I am continuing to develop my skills in AWS, Cloud Computing, DevOps, and Infrastructure Automation through practical projects.
I would love to hear from the AWS community: What security practices and architectural improvements would you recommend when building a private cloud storage platform?
#AWS #AmazonS3 #AWSKMS #CloudComputing #DevOps #Docker #NestJS #NextJS #CloudSecurity #CloudEngineering #AWSStudentBuilder
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article