This project demonstrates how to deploy a static website on an AWS EC2 instance and automate the deployment process using Jenkins.
It includes both:
- Manual Deployment using Apache
- Automated Deployment using Jenkins (CI/CD)
In this project, I deployed a static website on an AWS EC2 instance to understand real-world hosting and infrastructure.
Further, I automated the deployment using Jenkins, simulating a basic CI/CD pipeline where changes made in the code are automatically reflected on the live server.
- AWS EC2 (Ubuntu)
- Apache Web Server
- Jenkins (CI/CD)
- Git & GitHub
- Linux (CLI)
- SSH (MobaXterm)
GitHub β Jenkins β EC2 β Apache β Live Website
-
Ubuntu Server
-
Configure Security Groups:
- Port 22 (SSH)
- Port 80 (HTTP)
ssh -i key.pem ubuntu@<your-public-ip>sudo apt update
sudo apt install apache2 -ygit clone https://github.com/bs-bhadauria/kamera_website.git
cd kamera_websitesudo cp -r * /var/www/html/Open browser and visit:
http://
- Created Jenkins Pipeline Job
- Integrated GitHub repository with Jenkins
- Automated deployment process
Code Change β GitHub β Jenkins Build β Deploy to /var/www/html β Live Website Updated
- Modified HTML file in project
- Triggered Jenkins build
- Website updated automatically without manual file copying
kamera_website/
βββ index.html
βββ style.css
βββ photo.jpg
βββ README.md
βββ screenshots/
Add screenshots here:
- EC2 Instance Setup
- SSH Terminal Commands
- Jenkins Pipeline Execution
- Website Output (Browser)
- Understanding cloud infrastructure using AWS EC2
- Difference between local and production environments
- Role of Apache Web Server in hosting
- Networking basics (ports, public IP, security groups)
- CI/CD fundamentals using Jenkins
- Automating deployments using pipelines
- Dockerize the application
- Push Docker image to Docker Hub
- Implement Jenkins + Docker CI/CD pipeline
- Deploy using Kubernetes
- Setup Webhook for automatic trigger
Bhoopendra Singh Bhadauria DevOps & Backend Enthusiast
If you found this project helpful, consider giving it a star β on GitHub and connecting with me on LinkedIn.