Assignment No 4
Title: Deploy Web application on AWS cloud using Ec2 instance
1. Launch an Ec2 instance
2. Create a new key pair named “test-key” download and enter it
Instance launched successfully
3. Now Connect the Ec2 instance
Terminal started after connection to Ec2 instance
After connecting the Ec2 instance, enter the following commands sequentially to connect and
view your webpage publicly on your Ipv4 address (Here: [Link]
Commands to enter in the Ec2 instance connect:
sudo su –
yum update -y
yum install -y httpd
systemctl status httpd
mkdir aws_assg4
cdaws_assg4
wget
ls -lrt
unzip [Link]
ls -lrt
cd Grocery-Store-main
ls -lrt
mv * /var/www/html/
cd /var/www/html
systemctl status httpd
systemctl enable httpd
systemctl start httpd
Enter the final “systemctl start httpd” command to start the webpage on the IP address
The webpage is running on the assigned IP address