Deploy Web application on AWS Cloud using EC2 Instance
Вставка
- Опубліковано 5 лют 2023
- Select EC2 from the Services Menu
Select Launch Instance and Create an EC2 Instance.
Choose appropriate OS. I have used AWS Linux
Create a Key Pair. (This .pem/ppk file will be the specific key whose presence will enable you to login from anywhere)
We have successfully created & launched the instance.
After initializing the EC2 Instance, we will have to connect it to the VM.
For this we have three methods:
1. We will use the PuTTY to convert .pem file(The key which we downloaded while creating the instance) to .ppk and launch it on our local System/machine
2. If we have downloaded the .ppk file then we can directly initialize the VM on our local Machine/System.
3. We will directly connect to the VM through the AWS platform
I have used the 3rd method.
After connecting with the Instance, we will run the following commands on the console:
1. sudo su -
2. yum update -y
3. yum install -y httpd
4. systemctl status httpd
5. mkdir aws_assg3
6. cd aws_assg3
7. For this assignment we have created a portfolio website which we have uploaded on Github.com.
8. Copy the Download Link for the .zip file of the portfolio
9. using the wget command, download the zip file to the folder.
10. unzip the master.zip file and navigate in to the ShreyasKulkarni_Portfolio-master folder using the cd command.
11. move all the contents from the folder to “/var/www/html/”
Edit the Inbound Rules
check the status of httpd and then enable & start httpd using the following commands
systemctl status httpd
systemctl enable httpd
systemctl start httpd
Now open the public ipv4 address allocated to the EC2 instance we created in new tab. We will be able to see the Portfolio Website.
We have Successfully Deployed the Web Application on AWS Cloud!
All the Lab Assignments are performed for educational purposes.
GitHub Repository Link: github.com/Shreyas100100/Port...
Music used:
Track 1: • Jim Yosef - Link | Hou...
Track 2: • Alan Walker - Fade (Of...
Track 3: • Unknown Brain - Inspir...
Can i just say I love you coz you just solved my exact query this helped me complete my projects last part
Thank you ! 😊
after few days of searching i found this video. thank you so much brother
This is really helpful. Thank you. Those inbound rules'll getcha every time.
Bro u r a life saviour... after hours of searching i found this gold... You have got one subscriber forever😘😘
Thank You ! 😊
Thank you so much for the detailed video😀
Glad it was helpful!
Thanks for the video bro
Thank you it works
thanks it worked for me
Thank you so much
thanks for the vidio broo
Good One
I followed ever single step however I’m still getting the “unable to connect error” on my browser after enabling httpd
super bro Huge thanks for this web hosting guide!. and please Macke Video for Ip change to free domain Deploy Web application on AWS Cloud using EC2 Instance
Thank You !!
Sure I will👍
you can call it a simple web hosting. Web application includes DB and other components.
After everything I'm getting its works message but it won't comes designed website
🔥🔥🔥🔥
Thank You Pranjal !
Sir, you are connected your web page with GitHub. So whatever you are doing change on that repository so is their will be reflected on main website which we are hosted ?
And is their any changes for these ? and what is their expiry date ?
Can we deploy a full stack application with the database in the same manner??
how to get that .zip file from github can anyone suggest..
1:50 we got the same background image haha
After I followed the steps and copied the public IP address, the website doesn't show up. Instead, a page saying "It works!" pops up every time. I'd appreciate if you can help me with that.
It might be in your page or file in your index.html or codebase which is displayed. Kindly check once. Even if it doesn't work lemme know.
I don't have a file strictly named "index.html". I checked the codebase still don't work.@@AWSBoii1729
@@AWSBoii1729 I am also facing same issue
same issue for me WEre you able to resolve it??
@@primefindz no still stuck:(
can i connect this to rds somehow?
how can i host file located locally in my computer
followed same process to run a java code, copied the public IP address, the website doesn't show up. Instead, a page saying "It works!" pops up every time. I am unable to identify error
Same for me, how to resolve anyone please help me
I followed all the procedure but at the end the browser shows "it works" but not running my application
Shreyas content is good but avoid harsh background music ,affect focus.
Sure 👍
how to access the running app with AWS public DNS. please help!
Only showing “its works!” How to fix please
will you make the same video by selecting the Ubuntu server?
Sure but it has the same process.
How is you copy the zip file URL.
when I download the zip file it goes to my local and i'm unable to using the wget to updated into the project. any advice?
On the Code button you will get a drop-down. There is a GitHub URL you can click on the copy icon and you will get it
@@AWSBoii1729 I can get the GitHub URL. But I was looking to the Zip file URL
while downloading the zip file, right click on downlaod zip file and copy that link
Actually i have private git repo when i tried for that i am getting an error even i do git clone if i give my password it showed denied
can you anyone help me to fix that one
wget code url error, "HTTP request sent, awaiting for response 404 not found" like this error
Use the public link for the GitHub URL.
@@AWSBoii1729 but can't we do it by using the private link itself?
How do you get zip file link. I was unble to understand that part
github.com/Shreyas100100/Portfolio-Website.git
This is the link
bro go to code -> https-> now you will get to see the download zip option so dont click on it just click right click copy download link and use that link as shown in the video
while downloading the zip file, right click on downlaod zip file and copy that link
the link from the github cannot be copied as .zip
See 3:26
Instead of clicking on "Download ZIP," right-click on it and select "Copy link address"
do I need to create an Iam account to host website
It is not necessary.
what did you type after 2:10
sudo su -
Mere lepi me sirf It work! Show ho rha jo webpage deploy kiya vo show nhi ho rha he ❓
Follow the procedure in the description step by step according to the video. It must work
@@AWSBoii1729 mujhe bhi bro same dikha raha hai maine sab follow kiya
Bro m going to deploy a Dotnet application… same commands will work?
Yes it will
Bro how did u copied the .zip file at 3:58 please anyone help
add : "/archive/refs/heads/master.zip " at the end of GitHub link
I have the same issue.
Instead of clicking on "Download ZIP," right-click on it and select "Copy link address"
Tnx bro
How can we make this https?
You will have to add the protocol in the EC2 Instance
Hi are you from viit pune
followed same process to run a python app, but i'm getting 403 forbidden error. Unable to figure out what's the prob.
You will have to install python on your ec2 instance.
For that you can run "!pip install python" on your ec2 instance.
Can u pls upload install wordpress from ec2
how can i get master zip
Super tuto mais le lien du master.zip est introuvable.Que faire ???
yes
bro where is your porfolio git repo?
github.com/Shreyas100100/Portfolio-Website.git
BGM plz
Check description
Change your background music. that's over-used!
hello why mine “/var/www/html/” it showing mv:target /var/www/html is not a directory need help
i get /var/www/html/ is not a directory
You will have to install the httpd using the commands in the description.
did that but now my public IP just displays "It Works"@@AWSBoii1729