Deployed a static website on AWS EC2 using Git, GitHub, and Nginx
Source: Dev.to
Overview
As part of the DevOps Micro Internship (DMI) Cohort‑2, I completed an assignment that focused on applying Git, GitHub, and Linux deployment workflows. I built and versioned a small project, then deployed it to a live AWS EC2 server.
The workflow included:
- Initialising a local Git repository, staging files, writing meaningful commit messages, and pushing changes to a remote GitHub repository.
- Deploying the versioned code to an Amazon Linux EC2 instance.
- Installing and configuring Nginx to serve static content.
- Managing file ownership and permissions, and troubleshooting 403 Forbidden errors caused by differences between Amazon Linux and Ubuntu Nginx defaults.
Live Application
The site is publicly accessible at:
http://44.223.39.197
Key Takeaways
- Git provides a clear version history and supports controlled deployments.
- Deploying a static website on AWS EC2 with Nginx involves server setup, permission handling, and configuration verification.
- Understanding OS‑specific defaults (Amazon Linux vs. Ubuntu) is crucial for troubleshooting.
Acknowledgements
Thanks to Pravin Mishra, Lead Co‑Mentor Praveen Pandey, and co‑mentors Onuche Paul, Abhishek Makwana, and Mobarak Hosen for their guidance throughout the internship.
Community
This post is part of the DevOps Micro Internship (DMI) Cohort‑2 by Pravin Mishra. Join the Discord community:
https://lnkd.in/dBWEZfBZ
Tags: DevOps Linux AWS Nginx ReactJS CloudComputing DMI LearningInPublic