0% found this document useful (0 votes)
19 views5 pages

Deploy Web App on AWS EC2 Instance

The document outlines the steps to deploy a web application on an AWS EC2 instance. It includes instructions for launching an instance, connecting to it, and executing commands to set up a web server and host a webpage. The final result is a publicly accessible webpage at the specified IP address.

Uploaded by

prachijadhav1113
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views5 pages

Deploy Web App on AWS EC2 Instance

The document outlines the steps to deploy a web application on an AWS EC2 instance. It includes instructions for launching an instance, connecting to it, and executing commands to set up a web server and host a webpage. The final result is a publicly accessible webpage at the specified IP address.

Uploaded by

prachijadhav1113
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Assignment No 4

Title: Deploy Web application on AWS cloud using Ec2 instance


Launch an Ec2 instance

Create a new key pair named “test-key” download and enter it


Instance launched successfully
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 [Link]
ls -lrt
wget [Link]
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
Now edit the inbound rules and add the HTTPS security group
Enter the final “systemctl start httpd” command to start the webpage on the IP address

The webpage is running on the assigned IP address, here: [Link]

You might also like