How We Cut AWS Costs by 83% for Our Own Site

A detailed walkthrough of how we reduced our monthly hosting costs from $32 to under $3 by migrating from WordPress on Lightsail to a serverless architecture using S3 and CloudFront.

When we started Castaneda Networks, we made the same mistake many companies make: we over-engineered our infrastructure. Our simple company website was running on a WordPress multisite installation on Amazon Lightsail, costing us $32 per month when you included all the associated services. Today, that same site runs for less than $3 per month with better performance and zero maintenance.

Here's exactly how we did it, and how you can apply these same principles to slash your AWS costs.

The Problem: Overprovisioned and Underutilized

Our initial setup seemed reasonable at the time:

$32
Monthly Before
  • WordPress hosting
  • WAF charges
  • Maintenance time
  • 3-5 second load times
$2.50
Monthly After
  • S3 storage
  • CloudFront CDN
  • Zero maintenance
  • <300ms load times

Step 1: Audit Your AWS Bill

The first step to reducing costs is understanding where your money is going. We used AWS Cost Explorer to analyze our spending and discovered:

💡 Key Finding: We were paying $20/month for WAF Web ACLs from projects that had been decommissioned months ago. These orphaned resources were silently draining our budget.

To audit your own AWS bill:

  1. Open AWS Cost Explorer in your console
  2. Group costs by service
  3. Look for services you don't recognize or remember setting up
  4. Check for resources in regions you don't actively use

Step 2: Identify Static Content Opportunities

We realized our WordPress site was essentially static - we updated content maybe once a month. The dynamic features we were paying for (comments, user accounts, forms) could all be replaced with modern alternatives:

Step 3: Implement the Static Site Architecture

Our new architecture is embarrassingly simple but incredibly powerful:

S3 Bucket (Static Files)
↓
CloudFront CDN (Global Distribution)
↓
Route 53 (DNS)
↓
Your Users (Happy & Fast Experience)

S3 Configuration

Setting up S3 for static hosting is straightforward:

aws s3 mb s3://your-domain-name
aws s3 website s3://your-domain-name --index-document index.html --error-document error.html
aws s3 sync ./your-site s3://your-domain-name --delete

CloudFront Setup

CloudFront provides global CDN capabilities, SSL certificates, and caching:

Step 4: Handle Dynamic Functionality

For the contact form, we built a simple serverless function:

// Lambda function for contact form
exports.handler = async (event) => {
const { name, email, message } = JSON.parse(event.body);

// Send email via SES
await ses.sendEmail({
Source: 'noreply@yourdomain.com',
Destination: { ToAddresses: ['your@email.com'] },
Message: {
Subject: { Data: `Contact from ${name}` },
Body: { Text: { Data: message } }
}
}).promise();

return {
statusCode: 200,
body: JSON.stringify({ success: true })
};
};

Step 5: Optimize for Performance

The performance improvements were dramatic:

These improvements came from:

  1. Eliminating WordPress overhead
  2. CloudFront edge caching
  3. Optimized images and assets
  4. No database queries
  5. Minimal JavaScript

The Results: 83% Cost Reduction

📊 Final Numbers:
• Monthly cost: $32 → $2.50 (92% reduction)
• Annual savings: $354
• Performance: 10x faster
• Maintenance: Zero
• Uptime: 99.99% (AWS SLA)

When This Approach Makes Sense

This serverless static site approach is perfect for:

You might need a different approach if you have:

Key Takeaways

Our journey from $32/month to $2.50/month taught us valuable lessons:

  1. Audit regularly: We found $20/month in forgotten resources
  2. Question complexity: Our "dynamic" site was 99% static
  3. Embrace serverless: Lambda + S3 + CloudFront is incredibly powerful
  4. Performance matters: Faster sites convert better
  5. Simplicity scales: Less complexity = less cost + less maintenance

Ready to Optimize Your AWS Costs?

We've helped dozens of companies reduce their AWS bills by 50-80% through smart architecture decisions and optimization strategies.

Get Your Free AWS Cost Analysis