Skip to content
← Back to Home

WordPress E-Commerce Platform on AWS

Production e-commerce store on Amazon Lightsail with CloudFront CDN and on-demand demo restoration.

Overview

A production-ready e-commerce platform built on Amazon Lightsail running WordPress and WooCommerce, fronted by CloudFront for global edge delivery. Demo environment is restored on demand from a Lightsail snapshot, demonstiting cost-efficient environment lifecycle management.

Read more about the architecture and its broader applications

This platform shows how Amazon Lightsail can deploy a WordPress and WooCommerce environment with horizontal scaling, managed database high availability, and CDN-backed content delivery. It does so without the operational overhead of a full EC2-based architecture.

Lightsail provides bundled compute, storage, and transfer at a predictable fixed cost. This makes it well-suited for WordPress workloads where reliability and simplicity matter more than deep infrastructure configurability.

The demo environment is deployed on demand by restoring a Lightsail snapshot. This keeps the environment running only when needed and avoids ongoing infrastructure cost.

Architecture

Traffic enters via a Lightsail Distribution backed by CloudFront. A Lightsail Load Balancer distributes requests across multiple WordPress and WooCommerce instances. Data is persisted to a Lightsail Managed Database on the High Availability plan. Media is offloaded to a Lightsail Bucket served from the CDN edge.

Architecture Diagram · Official AWS Icons

AMAZON LIGHTSAILUsersHTTPSDistributionCDN edgeLoad BalancerHealth checksWP InstancesWooCommerceManaged DBHA standbyLightsail BucketMedia / assetsMedia edgeoffloadDailySnapshots
Request / data flow · Icons: AWS Architecture Icons (official)
View detailed architecture explanation

Requests enter through the Lightsail Distribution, which caches static assets at CloudFront edge locations globally. Dynamic WooCommerce requests such as cart and checkout are forwarded to the origin uncached.

The Lightsail Load Balancer distributes traffic across healthy instances via health checks and handles TLS termination using a managed ACM certificate.

Each instance runs WordPress with WooCommerce. The Lightsail Managed Database on the HA plan provides a primary and standby replica in separate availability zones with automatic failover.

Product images and media are offloaded to a Lightsail Bucket and served via the CDN directly. This keeps compute instances stateless and reduces instance bandwidth consumption.

For the full case study including request flows, trade-off analysis, and migration path, see the E-Commerce Case Study.

Demo Deployment Strategy

The demonstration store is deployed on demand by restoring a Lightsail snapshot. The environment launches only when needed and is torn down after use.

How the demo environment works

A snapshot captures the complete state of the Lightsail instance: WordPress installation, WooCommerce configuration, plugins, product catalog, and website design. When the demo is needed, a new instance is restored from the snapshot within minutes.

This pattern shows how environments can be created dynamically and destroyed when no longer needed. It is a practical cost control strategy for demo and staging workloads.

Services Used

  • • Amazon Lightsail
  • • Amazon CloudFront
  • • AWS Secrets Manager
  • • WordPress
  • • WooCommerce

Engineering Decisions

  • • Chose Lightsail for its bundled compute, storage, and networking at a predictable cost.
  • • Fronted with CloudFront to cache and deliver storefront assets from edge locations globally.
  • • Stored WordPress admin credentials in AWS Secrets Manager. No plaintext secrets in config.

Tradeoffs

  • • Lightsail simplifies operations but has less flexibility than EC2 for advanced networking.
  • • Snapshot-based demo restoration trades instant availability for cost savings.

Lessons Learned

  • • Snapshot-based environment lifecycle is a practical cost control pattern for demo workloads.
  • • CloudFront cache strategy directly impacts storefront page load performance.