Why would you want to host your website on AWS?

The performance that you get from AmazonAWS is really great if not the best.

Scalability

If your audience is growing and your business is taking off and you need more hardware like SSD, Bandwidth, processing Power etc. all you have to do is select a tier that matches your needs.


Security

Amazon takes security very serious and there are many security configurations to choose from.

Price

You have one whole year to use the free tier. So this is great for small businesses that are on a tight budget and don’t want to sacrifice the website performance.


Note: Route53 will cost you approximately $0.60 per month, which is apart of this configuration. This should be the only cost that you incur if you stay within the free tier.

Lets get started

There are a few thing that you are going to need to follow along with this tutorial.

  1. Domain name
  2. Basic knowledge of Information Technology

There are a lot of domain registrars out there, you can use anyone and they all have their pros and cons. However, I have been using NameSilo since 2017 here’s a list of pros and con.

Pros:

  • I have seen any major increase in the cost to renew my domain names.
  • Two factor authentication
  • You can set security on your account
  • Fee whois privacy for life

With some other domain registrars you have to pay $11-$15 annually for whois privacy, in addition to paying for your domain name.

Con:

  • If you make a purchase from an account that is not in USD and you make a return within the allotted 3 days. They will give you a return at a much lower conversion rate than what you paid for the domain. Example if you pay US $1.00 for a domain at a rate of CAD $1.4 which mean you paid 1.4. They could refund you US$0.70 which mean your rate drops from 1.4 to 0.7, So you just lost US$0.30.

With that being said we can going create our AWS account.

How do I create and activate a new Amazon Web Services account?

It is really easy to create an Amazon AWS account. Go to the URL https://aws.amazon.com/. Click the create an AWS account and follow the steps shown in the video below.

How do I create and activate a new Amazon Web Services account?

What to do after you have create your AWS account?

Login in to your Amazon Web Services (AWS) Management Console be clicking on my account, then AWS Management Console, and your should see login page similar to that one shown below.

Amazon Web Services login

How to install WordPress on a Bitnami data base?

Click on services at the top of the menu, then click each of the bullet points as they appear in the same order listed below.

  • EC2
  • Launch instance 
  • AWS Marketplace
  • AWS Marketplace
  • Type and select 
    • WordPress Certified by Bitnami Automattic
  • Select the free tier
    • Next: Configure instance

How to configure the details of the EC2 instance? 

What is EC2? EC2 stands for elastic computing 2. This is a service that AWS offers that makes it easy for you to scale up our scale down your computer hardware as needed. You’ll be able to configure the amount of resources that you need for your application needs like memory, cpu power, storage, etc. This way your project will have everything it needs to operate at its best, and you only pay for what you use.

  • For the Auto-assign ip we are going to click on Enable
  • The click Review and Launch
  • Then Launch 
  • Create a new key pair
  • Give it an appropriate name
  • Download the key pair
  • launch

How to get your WordPress login credentials?

Click on services at the top of the menu, then click each of the bullet points as they appear in the same order listed below.

  • EC2
  • Instance
  • Right click on the instance or select instance then click action 
    • Instance setting 
      • Get system log 

Scroll down near the bottom you will see a dotted rectangular box

Copy the user name and the password and paste it in a text file. We are going to need it to login on our new WordPress website. When that finished close the window.

On that same instance setting page copy the “ipv4 Public ip” this IP address is where your website is located. Paste the ip in the same text file as your login credentials we will need it later.

Note: If you enter that ip address in your browser you will see the newly install WordPress Website.

How to configure Route53?

First, what is route53? This is the Domain Name Service (DNS) for AWS. It will associate your domain name like www.example.com with the IP address of your website. This way people don’t have to try to remember the IP address to get to your website, all they have to do is type www.example.com in the browser.

Click on services at the top of the menu, then click each of the bullet points as they appear in the same order listed below.

  • Route53
  • Under DNS management 
    • Click “Get started now”
    • Click “Create Hosted Zone”

Click “Create Hosted Zone” again

Enter the following information:

  • Domain Name = YourDomain.com
  • Comment = leave the field empty
  • Type = Public Hosted Zone 
  • Click “Create”

Click “Create Record Set”

Enter the following information:

  • Name = leave the field empty
  • Type = A-IPv4 Address
  • Alias = No
  • TTL (Seconds) = Leave the default
  • Value = Copy & paste the IPv4 address from your text file
  • Routing policy = Leave the default 
  • Click “Create”

Click “Create Record Set”

Enter the following information:

  • Name = WWW
  • Type = CNAME – Canonical name
  • Alias = No
  • TTL (Seconds) = Leave the default
  • Value = YourDomain.com
  • Routing policy = Leave the default 
  • Click “Create”

How to configure your name server?

Why would you need to configure your name server. Chances are that you did not bay your domain name from AWS. Therefore, your DNS provider which is route53 in this case, need to know where your domain is registered.

Login to your Domain Name registrar (Example Godaddy.com, BlueHost.com, etc.)

  • The click manage my domain or something similar to that.
  • Select the domain Name you want to use.
  • Select change name server
  • Remove the default name server values.
  • Copy each one of the 4 NS Values.
    • note do not include the (.) at the end of the name server values.
  • Then paste them in the name server field of your domain registrar for the www.example.com.
  • Then click Enter, Save or Submit (Whichever is appropriate)
Example of AWS Route53 Name Server Values

Go to your browser and type your domain name, you should see a fresh installation of WordPress if everything is configured correctly.

That it you are done. All that’s let for us the do now is to login to the back end of our WordPress website.

Go to your browser and type your domainName.com/wp-login.php. Enter the user name and password you copied earlier.

Feel free to leave your comments and feedback below. I would like to hear what it was like doing this for the first time.