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

Deploy Web App on AWS EC2 Instance

The document outlines the steps to deploy a web application on AWS using an EC2 instance. It includes instructions for launching an EC2 instance, creating a key pair, connecting to the instance, and executing commands to set up a web server and host a webpage. The final outcome is a running webpage accessible via a 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 views3 pages

Deploy Web App on AWS EC2 Instance

The document outlines the steps to deploy a web application on AWS using an EC2 instance. It includes instructions for launching an EC2 instance, creating a key pair, connecting to the instance, and executing commands to set up a web server and host a webpage. The final outcome is a running webpage accessible via a 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


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

You might also like