Deploy Web application on AWS Cloud using EC2 Instance

  Рет қаралды 75,751

Shreyas Kulkarni

Shreyas Kulkarni

Жыл бұрын

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...

Пікірлер: 97
@rigvedraut6765
@rigvedraut6765 10 ай бұрын
Can i just say I love you coz you just solved my exact query this helped me complete my projects last part
@AWSBoii1729
@AWSBoii1729 10 ай бұрын
Thank you ! 😊
@duinterweb
@duinterweb 5 ай бұрын
This is really helpful. Thank you. Those inbound rules'll getcha every time.
@saravanankaliyamoorthy9479
@saravanankaliyamoorthy9479 3 ай бұрын
after few days of searching i found this video. thank you so much brother
@badrinarayanans355
@badrinarayanans355 11 күн бұрын
Thanks a lot, it was very helpful to host a static site😊
@Pranavi_Sarees_Dresses
@Pranavi_Sarees_Dresses Жыл бұрын
Thank you so much for the detailed video😀
@AWSBoii1729
@AWSBoii1729 Жыл бұрын
Glad it was helpful!
@lonewolf.s.n.4083
@lonewolf.s.n.4083 7 ай бұрын
Bro u r a life saviour... after hours of searching i found this gold... You have got one subscriber forever😘😘
@AWSBoii1729
@AWSBoii1729 6 ай бұрын
Thank You ! 😊
@ukeditz3
@ukeditz3 21 сағат бұрын
Romba nanri puniyavathi
@Rockstarsquad
@Rockstarsquad 6 ай бұрын
Thanks for the video bro
@user-dk5mx1mw5q
@user-dk5mx1mw5q 4 ай бұрын
Thank you it works
@knight_04
@knight_04 3 ай бұрын
thanks it worked for me
@bricegnanago409
@bricegnanago409 3 ай бұрын
Thank you so much
@samalsaad7802
@samalsaad7802 8 ай бұрын
I followed ever single step however I’m still getting the “unable to connect error” on my browser after enabling httpd
@user-zt3rh7nv3h
@user-zt3rh7nv3h 19 күн бұрын
thanks for the vidio broo
@sasikannan.p_vfx1301
@sasikannan.p_vfx1301 8 ай бұрын
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
@AWSBoii1729
@AWSBoii1729 8 ай бұрын
Thank You !! Sure I will👍
@Yugalnasare
@Yugalnasare 26 күн бұрын
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 ?
@Schinni2730
@Schinni2730 5 ай бұрын
After everything I'm getting its works message but it won't comes designed website
@aprudhviremo5031
@aprudhviremo5031 17 күн бұрын
Good One
@alamzia2905
@alamzia2905 2 ай бұрын
Can we deploy a full stack application with the database in the same manner??
@gyaneshpokhrel5261
@gyaneshpokhrel5261 2 ай бұрын
you can call it a simple web hosting. Web application includes DB and other components.
@atergunethajireddy6890
@atergunethajireddy6890 6 ай бұрын
how to get that .zip file from github can anyone suggest..
@Himalayan_Solivagant
@Himalayan_Solivagant 13 күн бұрын
how to access the running app with AWS public DNS. please help!
@SaniaShaikh9202
@SaniaShaikh9202 3 ай бұрын
can i connect this to rds somehow?
@nahh9494
@nahh9494 7 ай бұрын
1:50 we got the same background image haha
@sthembisoncwane3412
@sthembisoncwane3412 4 ай бұрын
how can i host file located locally in my computer
@kanhaiyachitrakar1972
@kanhaiyachitrakar1972 Ай бұрын
I followed all the procedure but at the end the browser shows "it works" but not running my application
@pranjal2157
@pranjal2157 Жыл бұрын
🔥🔥🔥🔥
@AWSBoii1729
@AWSBoii1729 Жыл бұрын
Thank You Pranjal !
@mohamedhendy5556
@mohamedhendy5556 9 ай бұрын
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.
@AWSBoii1729
@AWSBoii1729 9 ай бұрын
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.
@mohamedhendy5556
@mohamedhendy5556 9 ай бұрын
I don't have a file strictly named "index.html". I checked the codebase still don't work.@@AWSBoii1729
@MohammedFairoz-cr9zj
@MohammedFairoz-cr9zj 9 ай бұрын
@@AWSBoii1729 I am also facing same issue
@primefindz
@primefindz 9 ай бұрын
same issue for me WEre you able to resolve it??
@mohamedhendy5556
@mohamedhendy5556 9 ай бұрын
@@primefindz no still stuck:(
@gautambollu6472
@gautambollu6472 8 ай бұрын
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
@jyothikatakam825
@jyothikatakam825 2 ай бұрын
Same for me, how to resolve anyone please help me
@jayveelagman9432
@jayveelagman9432 2 ай бұрын
Only showing “its works!” How to fix please
@HariNandyala-lf1hw
@HariNandyala-lf1hw Ай бұрын
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
@nagendragunda2567
@nagendragunda2567 10 ай бұрын
will you make the same video by selecting the Ubuntu server?
@AWSBoii1729
@AWSBoii1729 10 ай бұрын
Sure but it has the same process.
@Headshot-lx4hb
@Headshot-lx4hb 7 ай бұрын
Shreyas content is good but avoid harsh background music ,affect focus.
@AWSBoii1729
@AWSBoii1729 6 ай бұрын
Sure 👍
@tanvir608
@tanvir608 5 ай бұрын
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?
@AWSBoii1729
@AWSBoii1729 5 ай бұрын
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
@tanvir608
@tanvir608 5 ай бұрын
@@AWSBoii1729 I can get the GitHub URL. But I was looking to the Zip file URL
@majaharkazi2030
@majaharkazi2030 3 ай бұрын
while downloading the zip file, right click on downlaod zip file and copy that link
@satyamprajapati.2688
@satyamprajapati.2688 Жыл бұрын
How do you get zip file link. I was unble to understand that part
@AWSBoii1729
@AWSBoii1729 10 ай бұрын
github.com/Shreyas100100/Portfolio-Website.git This is the link
@rigvedraut6765
@rigvedraut6765 10 ай бұрын
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
@majaharkazi2030
@majaharkazi2030 3 ай бұрын
while downloading the zip file, right click on downlaod zip file and copy that link
@arindampadhy4934
@arindampadhy4934 11 ай бұрын
wget code url error, "HTTP request sent, awaiting for response 404 not found" like this error
@AWSBoii1729
@AWSBoii1729 10 ай бұрын
Use the public link for the GitHub URL.
@v.sreesairam9488
@v.sreesairam9488 9 ай бұрын
@@AWSBoii1729 but can't we do it by using the private link itself?
@sahillokhande4285
@sahillokhande4285 3 ай бұрын
Hi are you from viit pune
@gamalmahamed6401
@gamalmahamed6401 Жыл бұрын
what did you type after 2:10
@AWSBoii1729
@AWSBoii1729 Жыл бұрын
sudo su -
@amanwadgaonkar9615
@amanwadgaonkar9615 6 ай бұрын
the link from the github cannot be copied as .zip
@AWSBoii1729
@AWSBoii1729 5 ай бұрын
See 3:26
@hastihajipara777
@hastihajipara777 3 ай бұрын
Instead of clicking on "Download ZIP," right-click on it and select "Copy link address"
@padmapriya1579
@padmapriya1579 3 ай бұрын
Can u pls upload install wordpress from ec2
@Sudhanshusable98
@Sudhanshusable98 Жыл бұрын
Mere lepi me sirf It work! Show ho rha jo webpage deploy kiya vo show nhi ho rha he ❓
@AWSBoii1729
@AWSBoii1729 Жыл бұрын
Follow the procedure in the description step by step according to the video. It must work
@phy2503
@phy2503 8 ай бұрын
@@AWSBoii1729 mujhe bhi bro same dikha raha hai maine sab follow kiya
@nikhilmishra8629
@nikhilmishra8629 Жыл бұрын
Bro m going to deploy a Dotnet application… same commands will work?
@AWSBoii1729
@AWSBoii1729 10 ай бұрын
Yes it will
@tanushkamalik6532
@tanushkamalik6532 Жыл бұрын
do I need to create an Iam account to host website
@AWSBoii1729
@AWSBoii1729 Жыл бұрын
It is not necessary.
@mnuman3692
@mnuman3692 2 ай бұрын
how can i get master zip
@abishekbaiju1705
@abishekbaiju1705 9 ай бұрын
How can we make this https?
@AWSBoii1729
@AWSBoii1729 9 ай бұрын
You will have to add the protocol in the EC2 Instance
@moussabagayogo949
@moussabagayogo949 7 ай бұрын
Super tuto mais le lien du master.zip est introuvable.Que faire ???
@vamshiartham3218
@vamshiartham3218 2 ай бұрын
yes
@beingblunt3523
@beingblunt3523 10 ай бұрын
followed same process to run a python app, but i'm getting 403 forbidden error. Unable to figure out what's the prob.
@AWSBoii1729
@AWSBoii1729 10 ай бұрын
You will have to install python on your ec2 instance. For that you can run "!pip install python" on your ec2 instance.
@bhargav6322
@bhargav6322 5 ай бұрын
Bro how did u copied the .zip file at 3:58 please anyone help
@AnandhuKrish1
@AnandhuKrish1 5 ай бұрын
add : "/archive/refs/heads/master.zip " at the end of GitHub link
@MyLife-kh6tu
@MyLife-kh6tu 4 ай бұрын
I have the same issue.
@hastihajipara777
@hastihajipara777 3 ай бұрын
Instead of clicking on "Download ZIP," right-click on it and select "Copy link address"
@bhargav6322
@bhargav6322 3 ай бұрын
Tnx bro
@yuktham6669
@yuktham6669 Жыл бұрын
bro where is your porfolio git repo?
@AWSBoii1729
@AWSBoii1729 10 ай бұрын
github.com/Shreyas100100/Portfolio-Website.git
@MetaHouseALin
@MetaHouseALin 2 ай бұрын
BGM plz
@AWSBoii1729
@AWSBoii1729 2 ай бұрын
Check description
@x0z59
@x0z59 6 ай бұрын
Change your background music. that's over-used!
@farmciawei7534
@farmciawei7534 4 ай бұрын
hello why mine “/var/www/html/” it showing mv:target /var/www/html is not a directory need help
@primefindz
@primefindz 9 ай бұрын
i get /var/www/html/ is not a directory
@AWSBoii1729
@AWSBoii1729 9 ай бұрын
You will have to install the httpd using the commands in the description.
@primefindz
@primefindz 9 ай бұрын
did that but now my public IP just displays "It Works"@@AWSBoii1729
Deploy Spring Boot Application in AWS using EC2 & S3 | JavaTechie
17:56
100❤️
00:19
MY💝No War🤝
Рет қаралды 20 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 4,4 МЛН
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 22 МЛН
Build with Me: Launch a website on Amazon S3 | AWS Project
8:04
Tech With Lucy
Рет қаралды 110 М.
Creating a Flask Web Server in EC2 on the AWS Free Tier from scratch!
17:28
Hosting a Docker Container on AWS EC2 Free Tier in under 12 minutes
11:35
Vincent Stevenson
Рет қаралды 39 М.
Top 50+ AWS Services Explained in 10 Minutes
11:46
Fireship
Рет қаралды 1,5 МЛН
How to host HTML/CSS files on AWS? Free hosting on AWS | Web hosting for Beginners #aws
13:49
The Best AWS Cloud Projects To Get You Hired (For Beginners)
6:17
Tech With Lucy
Рет қаралды 480 М.
100❤️
00:19
MY💝No War🤝
Рет қаралды 20 МЛН