Building a WordPress Site with Amazon Lightsail - From SSL Setup to CDN Delivery

Build a WordPress site on Lightsail, configure SSL with Let's Encrypt, and publish it globally via CDN. This article also covers backup strategies.

Building with the WordPress Blueprint

Lightsail's WordPress blueprint provides a WordPress environment packaged by Bitnami. Apache, MySQL, PHP, and WordPress come pre-configured, so you can access the WordPress admin panel from your browser immediately after creating the instance. The initial password can be found by running cat $HOME/bitnami_application_password in the browser-based SSH terminal in the Lightsail console. Plans start at $3.50 USD/month (512 MB RAM), which is sufficient for a personal blog. For sites with tens of thousands of monthly page views, the $5 USD plan (1 GB RAM) or higher is recommended.

SSL Setup and Domain Management

HTTPS can be automatically configured using Bitnami's bncert-tool. Simply SSH into the instance, run sudo /opt/bitnami/bncert-tool, and enter your domain name. The tool handles Let's Encrypt SSL certificate acquisition, Apache HTTPS configuration, HTTP-to-HTTPS redirection, and automatic certificate renewal all at once. Domain DNS management can be done through Lightsail's DNS zones. Set an A record pointing to the instance's static IP and a CNAME record for the www subdomain. Lightsail static IPs are free as long as they are attached to an instance.

CDN Delivery and Backups

Lightsail CDN is a CloudFront-based content delivery feature that you can enable simply by creating a distribution and specifying your instance as the origin. Static content such as images, CSS, and JavaScript is cached at edge locations worldwide and served from the location nearest to the user. The free tier includes 50 GB of monthly data transfer. For backups, it's recommended to enable automatic snapshots taken daily. Up to 7 snapshot generations are retained, and you can restore by creating a new instance from a snapshot in case of failure. Manual snapshots have no retention limit and are useful for backups before major changes. To understand Lightsail configuration patterns, related books (Amazon) can be a useful reference.

WordPress Hosting Costs

The primary cost of running a WordPress site is the monthly Lightsail plan fee. The 2 GB memory plan ($10/month) is a standard choice for small sites, handling up to tens of thousands of monthly page views. Lightsail CDN starts at $2.50/month with 50 GB of data transfer included. Automatic snapshots are free, and manual snapshots cost approximately $0.05 per GB per month. Compared to an EC2 + ALB + RDS setup (over $50/month), Lightsail offers significantly lower-cost WordPress hosting.

Summary

Lightsail is the ideal platform for building and running a WordPress site with minimal effort and cost. By combining instant deployment via blueprints, automated SSL setup with bncert-tool, global delivery through CDN, and automatic snapshot backups, you can run a full-featured WordPress site for just a few dollars per month.