How to Host Your Website on AWS EC2 Instance

How to Host Your Website on AWS EC2 Instance



How to host a website on AWS (Full Project):

How to host a WordPress website on AWS:

How to Host Your Website on AWS EC2 Instance

While S3 is the recommended service for hosting a static website, this AWS tutorial video is intended to show beginners some workflow in AWS. This tutorial will teach you how to launch an EC2 instance and host a website on it. Some AWS workflow covered in this video are:
How to create an S3 bucket and upload files
How to create an IAM role with S3 full access permission
How to download Putty
How to SSH in an EC2 instance
How to create a security group and keypair
How to Launch an EC2 instance and attach keypair and security group.

SSH Commands:
sudo su
yum update -y
yum install httpd -y
chkconfig httpd on
cd /var/www/html
aws s3 sync s3://remote_S3_bucket local_directory
service httpd start

AWS doc:
Putty download:

How to Host Your Website on AWS EC2 Instance

#AWS #VPC #AWSTutorialForBeginners

41 thoughts on “How to Host Your Website on AWS EC2 Instance

  1. Thank you for this great tutorial!
    Easy to follow even for someone at my level. Keep up the good work buddy! Thanks again!

  2. I followed the whole process but I landed on the Amazon Linum AMI Test Page.
    also when I type "Ls"(L in CAPS OFF*) it Shows an additional item i.e. local_directory…
    what to do???

  3. I can see the website through my browser but when I put the ip address in cmd I get the "Request Timed Out" message, any fix for this? 🙁 Thanks

  4. I followed the steps, got Apache is running successfully but the html page is not loading from directory. It says "You may now add content to the directory /var/www/html/. "

    Please suggest , any help is appreciated

  5. Hey AWS Notes, I would like to get your technical advice on choosing the best type size for a better performance of my eCommerce website and mobile application saver. If you can shoot me an email that would be great.

  6. Thank you for this video man 🙂 instead of using putty can I use Filezilla to manage my files at also can we edit file directly?

  7. Can you code the provided commands into the User Data section of the EC2 instance? If we're using Remote Desktop to access the instance

  8. Thank you thank you thank you thank you!!! You've explained in 15 mins what i couldn't figure out over 15 hours.

  9. hello, thank you for making the video. I was linked from the previous video. I followed every steps until the end. However when I opened my page using the IP address. It shows me an Apache HTTP Test Page instead of my app content. I am completely new to this need help!

  10. So, I followed these instructions exactly, and after I ran the last command: service httpd start, my command line doesn't look like yours. It says this: Redirecting to /bin/systemctl start httpd.service

    Then when I try to open the IP address, I still get the Apahe Test Page. I really need help with this!

  11. Also, if you want to update the content of your website, can you just simply delete the file (index.html for example) on the S3 bucket, then upload the amended file or will you have to create a new bucket?

  12. i've come from the other video, the only thing I was confused by was creating the Key Pair with the ppk… Thanks for clarifying 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *