Last Updated on December 4, 2020 by Rajeev Bagra
Since I already have my AWS account, I click Sign-in.
Already have two instance of WordPress. For this demo, I click Create Instance.
Step 1: Creating a WordPress instance/website
Will be using Linux/Unix platform. Click WordPress.
Step 2: Creating a Lightsail static IP address and attaching to WordPress instance/website
On the home page of Amazon Lightsail, click Amazon Lightsail button. Next select Networking tab.
Step 3: Connect your AWS WordPress website/instance with custom domain name
There are two ways. One is to configure DNS records of your existing domain registrar. Just Add A record with host @ and value as IP address (184.108.40.206 for this example). Also ADD another A record with host www and under value IP address (220.127.116.11) so that if someone types www.woosplendid.com instead of woosplendid.com, he or she can access the website.
Another way is to transfer nameservers to AWS. For the first three domains, you can follow this method:
Here is a tutorial to refer how to configure Name servers if your domain registrar is GoDaddy:
After a propagation time (less than 24 hrs but usually one hour or so), woosplendid.com shows up.
Once the maximum of 3 DNS limits hit, you can still continue connecting more instances using the simple updating of A record mentioned earlier. Or let Host 53 manage the hosting under AWS that has maximum of 500 domains allowed.
As mentioned above, use these documents to configure the Hosted Zones:
How to edit the DNS records for a domain managed in Route 53 to point to your Lightsail instance:
Step 4: Installing free Let’s Encrypt SSL certificate
Note that by default, you get your WordPress site without SSL certificate installed. It means it will show Not Secure with most browsers (of course Chrome). Given the thrust given by Google for secure sites, it is important to have SSL certificate installed.
Click Connect Using SSH and enter the following command: sudo /opt/bitnami/bncert-tool
Enter: woosplendid.com www.woosplendid.com
Next, I am asked Enable HTTP to HTTPS redirection [Y/n]
I enter Y
You get few more choices to configure in the form of Y/N before providing your email id.
And next you get a locked secure site on Chrome browser.