Ecommerce workloads are spiky and seasonal, which makes them both expensive to over-provision and risky to under-provision. The goal is not the lowest bill; it is the lowest bill that still survives your biggest day.
1. Get visibility first
Enforce tagging (environment, owner, service) and turn on the Cost and Usage Report with Athena or a FinOps tool. Unowned spend is where waste hides.
2. Rightsize compute
Use Compute Optimizer and CloudWatch data over at least two weeks, including a traffic peak. It is common to find instances sized for a peak that rarely happens.
3. Move to Graviton
ARM-based instances offer better price-performance for PHP, Node and many databases. Test your stack, especially compiled extensions, before switching.
4. Cover your baseline with Savings Plans
Commit only to the steady baseline, never to the peak. Compute Savings Plans give flexibility across instance families and regions; layer Spot for stateless workloads.
5. Schedule non-production environments
Dev, QA and staging rarely need to run nights and weekends. Automated schedules often cut those environments' cost by more than half.
6. Autoscale on the right signals
Scale on request count or queue depth rather than CPU alone, pre-warm ahead of known campaigns, and keep scale-in conservative to avoid thrashing.
7. Fix data transfer and NAT costs
Use VPC endpoints for S3 and DynamoDB, keep chatty services in one Availability Zone where resilience allows, and put a CDN in front of media. NAT Gateway processing charges surprise many teams.
8. Tier your storage
Lifecycle policies to Infrequent Access or Glacier for logs, backups and old media. Delete orphaned EBS volumes and stale snapshots.
9. Right-tier your databases
Review RDS and Aurora instance classes, storage type (gp3 vs io1), read-replica count and use Aurora Serverless v2 where load is genuinely variable.
10. Cache aggressively
Every request served by Varnish, Redis or a CDN is a request your database and application servers do not process. Caching is cost optimisation and performance in one.
11. Control observability spend
Log volume and metric cardinality can rival compute cost. Sample, set retention policies, and drop debug logs in production.
12. Make it continuous
Budgets, anomaly alerts, monthly reviews and cost checks in pull requests (for example Infracost in your Terraform pipeline) stop savings eroding.
See what you could save
Try our cloud savings estimator or ask for a fixed-fee cloud cost audit →