Do It Yourself – Tutorials – Hosting a Static Website on Amazon (AWS) (EC2) Console | Cloud Guru

by | Nov 17, 2020 | 0 comments

Do It Yourself – Tutorials – Hosting a Static Website on Amazon (AWS) (EC2) Console | Cloud Guru

by | Nov 17, 2020 | Do It Yourself - Build Your Own Website | 0 comments

Do It Yourself – Website Tutorials



This amazon web services tutorial will show you how to host a static website on Amazon EC2 Console.

Instructions:
Go to http://aws.amazon.com/ and create a new account if you do not have an account already.
A credit card or debit is required.

Sign into your AWS account under console management.

Select EC2 and create a new instance.

Choose one of the Ubuntu AMIs, and leave everything default. Under Security groups, create a new security group with SSH and HTTP.
Name your key and download.

Under the terminal, maneuver to the key and chmod 400 to make sure that the permissions are correct.
Under windows, you may have to run as administrator the command prompt or cygwin to chmod properly.
Or you can use the command that I did, which was:
chown :Users testTutorial.pem
Then I did:
chmod 400 testTutorial.pem
Allows only me to read
Then:
ssh -i testTutorial.pem [email protected]…(public IP)

Once you are on the Ubuntu AMI, you can start to mess around with the packages to install.
I recommend the following:
Run the command:
sudo apt-get install apache2 libapache2-mod-php5 php5 mysql-server php5-mysql
You can also get phpadmin if you would like.
Remember to restart the apache service:
service apache2 restart

Then, run a secure installation of mysql:
mysql_secure_installation

Go put in your browser the public IP. It works! But what if you want to change the index.html

Well, go cd ../../var/www
In this directory www, you can edit the index.html
sudo vim index.html
You can change the index.html to anything you want using the editor of your choice.

The site changes.

► What does it cost?
To give you an example of cost: when my blog receiver 1000 visitors per month I was paying just 6 cents to host it!

Check out more detailed S3 pricing here:
https://aws.amazon.com/s3/pricing/

Or use the calculator to estimate your AWS bill:
http://calculator.s3.amazonaws.com/in…

********************************************************************
********************************************************************

A step by step tutorial on how to setup a static website hosting using Amazon Web Services S3 bucket service. A highly cost effective, highly scalable solution for any static website.

JSON Permission Code: Modify “arn:s3:::example-bucket/*”
{
“Version”: “2012-10-17”,
“Statement”: [
{
“Sid”: “PublicReadGetObject”,
“Effect”: “Allow”,
“Principal”: “*”,
“Action”: [
“s3:GetObject”
],
“Resource”: [
“arn:aws:s3:::example-bucket/*”
]
}
]
}

Thank you for watching!!

Please subscribe to get updates on new videos 🙂

*******************************************************************
*******************************************************************

source

0 Comments

Submit a Comment


What Our Clients Are Saying

North Burnaby Boxing Club

Thanks so much for all the great work you have done in developing our website Leland!

Manny, North Burnaby Boxing Club

Dieno Digital Marketing Services
5
2018-04-27T01:06:02+00:00

Manny, North Burnaby Boxing Club

Thanks so much for all the great work you have done in developing our website Leland!

JB Consulting

Leland built us a great site at a great price. We can’t say enough about how pleasant it was dealing...

Dave, JB Consulting

Dieno Digital Marketing Services
5
2018-04-27T01:06:57+00:00

Dave, JB Consulting

Leland built us a great site at a great price. We can’t say enough about how pleasant it was dealing with him!

Kelicor Logistics

Leland created my website for my new venture. I found his service to be excellent,was always available to answer my...

Colin, Kelicor Logistics Solutions

Dieno Digital Marketing Services
5
2018-04-27T01:07:34+00:00

Colin, Kelicor Logistics Solutions

Leland created my website for my new venture. I found his service to be excellent,was always available to answer my questions and was always prepared to go the extra mile, in order to ensure my website conveyed it's intended message,, And the cherry on top was it was most affordable. Would definitely recommend. Thanks Leland !

McNeney McNeney Spieker LLP

Dieno Digital has been providing our firm with what we like to call the Royal Package in customer service for...

M, McNeney McNeney Spieker LLP

Dieno Digital Marketing Services
5
2018-04-27T01:08:19+00:00

M, McNeney McNeney Spieker LLP

Dieno Digital has been providing our firm with what we like to call the Royal Package in customer service for over 3 years now. The knowledge and skills Leland brings to the table has increased our business and streamlined our social media platform. Our requests are always dealt with in a timely manner and we are always given options and alternatives to better reach potential new clients. We highly recommend Dieno Digital to increase your life social media presence.
5
4
Dieno Digital Marketing Services
dieno digital marketing services