This mini-project is designed for the Cloud Computing subject, focusing on deploying a simple CV Builder website on an AWS EC2 instance. The goal is to gain hands-on experience with cloud infrastructure and deployment processes.
- CV Builder Website: Create a basic CV Builder website where users can input their details and generate a formatted CV.
- AWS EC2 Instance: Deploy the CV Builder on an AWS EC2 instance, utilizing the scalability and flexibility of cloud computing.
- Hands-on Learning: Gain practical knowledge of setting up a web application in a cloud environment.
- Log in to the AWS Console.
- Navigate to the EC2 service.
- Create a new EC2 instance for hosting your CV Builder website.
- Under
EC2 > instances > Launch
an instance - Select OS as Amazon linux.
- Create Key pair for assesing VM.
- Select
.ppk
extension for puTTY and.pem
for openSSH as you like. - Configure the storage.
- Boom Launch the instance.
-
I am connecting directly using console if you want to connect your instance you can connect it using puTTY or openSSH!
-
Granting admin previlage using sudo command. Run the sudo su Command.
Use the following command to switch to the root user and gain admin privileges:
sudo su
-
Update your Virtual Machine using following command:
yum update
-
After updating your system download git using following command:
yum install git -y
- After that clone these repository using following command:
After that copy index.html,script.js,style.css from |CV Builder Code| folder and paste it into |/var/www/html| folder as shown below:
git clone https://github.com/kffod/AWS-CLOUD-EC2.git
cd /AWS-CLOUD-EC2/CV Builder Code/ mv * /var/www/html/
- After that install httpd using following command:
yum install httpd -y
- After installing httpd start httpd service using following command:
systemctl start httpd
You can check whethier httpd service running or not using following command:
systemctl status httpd
-
For accessing your cloud hosted website go to EC2 instance Dashboard and select your instance.
-
After Selecting your instance go to your public IP address of EC2 instance In my case my public IP is
13.53.200.33
* Open it in any browser , BOOM your website is deployed in cloud! :).
NOTE: Stop the instance after you deploy successfully; otherwise, after the free trial limit is exceeded, you will be charged!
Remember to enjoy the learning process and troubleshoot any challenges you encounter. Happy cloud adventures! 🚀✨!