Tutorial Part 2: Object Storage, Load Balanced and CDN on Amazon LightSail

This is part 2 of setting up a complete load balanced WordPress website on the Amazon LightSail platform. This tutorials shows how to add CDN service to a fully load balanced WordPress website architecture. Check out Part 1 of this setup to get the full picture.


  1. Create a Distribution
  2. Choose the bucket / object storage as origin
  3. Choose distribution plan specific for your needs
  4. Create SSL Certificate
  5. Choose a subdomain for connecting to CloudFront (CDN).
  6. Validate domain with CNAME record at your DNS Management
  7. Enable Custom Domains on the distribution and select the new certificate
  8. Point your subdomain to the distribution URL in DNS Management
  9. Log into WP Admin
  10. Navigate to General->Offload Media Lite
  11. Scroll to Delivery section Click on Change
  12. Select Amazon CloudFront
  13. Turn on Custom Domain
  14. Add you subdomain and hit Save
  15. Test out by showing the sample media file
  16. Add media file to a Test Page and check Inspector -> Network -> Response Headers for attribute x-cache: with value of “Hit from Cloudfront”

Links for reference:

Content delivery network distributions in Amazon Lightsail | Lightsail Documentation

Part 1: Tutorial: Setup Load Balanced WordPress website with Lightsail Object Storage


All videos tutorials on the website as well as the YouTube channel aim to provide a simplified process for a specific scenario; there could be many different factors and unique use cases you may have. The tutorials may not cover every situation; so treat is as a starting point or learning concept to apply to your unique situations, and consider this inspiration but not prescription or explicit direction.

Scroll to Top