Prompt
Our AWS bill keeps climbing, how do I simplify SaaS infrastructure?
Latest observation
If your AWS bill is climbing, the fastest way to simplify SaaS infrastructure is to reduce the number of moving parts and standardize the ones you keep.
1) Start by cutting complexity, not just cost
Look for these common SaaS infrastructure sprawl patterns:
- Too many microservices
- Multiple databases for similar jobs
- Custom infra when managed services would do
- Separate stacks for each customer/tenant
- Duplicate environments that aren’t used
- Over-engineered observability or networking setups
A good rule: if a component is not clearly creating revenue, reliability, or speed, it’s a simplification candidate.
2) Prefer managed services over self-managed infrastructure
This is usually the biggest win for SaaS teams.
Replace:
- EC2-based app servers → ECS/Fargate, App Runner, or Lambda where appropriate
- Self-hosted databases → RDS/Aurora
- Self-managed Redis → ElastiCache
- Self-managed queues → SQS/SNS
- Self-hosted search → OpenSearch only if truly needed, otherwise avoid
- Custom file storage → S3
- Your own auth service → Cognito/Auth0/Clerk if acceptable
- Custom cron infrastructure → EventBridge Scheduler
Managed services usually cost more per unit than raw infrastructure, but they reduce:
- operational burden
- failure modes
- patching/security work
- hidden engineering time
For many SaaS companies, that tradeoff is worth it.
3) Collapse unnecessary services
Ask of each service:
- Does this service have a distinct business boundary?
- Can it be merged without hurting deploy speed?
- Is it truly high-traffic enough to justify separate scaling?
- Is it a source of operational pain?
If you have lots of tiny services, consider:
- merging low-risk services into a modular monolith
- keeping only services that need independent scaling or ownership
- sharing common libraries and deployment patterns
A modular monolith can drastically reduce AWS spend and operational complexity.
4) Simplify your data layer
Data stores are often the hidden cost center.
Common simplifications:
- Use one primary relational DB unless there’s a strong reason not to
- Avoid running both Postgres and MySQL unless required
- Don’t add Cassandra/DynamoDB/Elastic just because they’re trendy
- Use read replicas only when you have measured read pressure
- Remove stale indexes, old replicas, and unused tables
- Review backup retention and snapshot policies
Also check whether your app is over-querying or storing redundant data.
5) Right-size compute
A lot of AWS waste comes from overprovisioning.
Look for:
- oversized EC2 instances
- ECS tasks with too much CPU/memory
- always-on services that are idle most of the day
- databases larger than needed
- autoscaling settings that are too conservative
Actions:
- use CloudWatch metrics to compare actual vs provisioned usage
- move bursty workloads to serverless or queue-based processing
- use Spot for interruption-tolerant jobs
- schedule dev/staging to stop outside working hours
- commit to regular rightsizing reviews
6) Reduce networking and data transfer costs
Data transfer can quietly become expensive.
Check:
- cross-AZ traffic
- NAT Gateway costs
- inter-region traffic
- excessive egress to third parties
- chatty service-to-service communication
Simplify by:
- minimizing cross-AZ dependencies where possible
- avoiding unnecessary NAT traffic
- using VPC endpoints for AWS services
- keeping workloads and data in the same region
- reducing service chatter with batching and async processing
NAT Gateways are a frequent cost surprise.
7) Make environments lean
Non-production environments often waste a lot of money.
Simplify by:
- keeping only essential dev/staging environments
- using smaller instances in non-prod
- auto-shutting down idle environments
- using synthetic or sampled data instead of full production copies
- sharing sandbox infrastructure when safe
8) Standardize deployment and observability
Tool sprawl adds cost and complexity.
Consolidate:
- logging stack
- metrics stack
- alerting stack
- CI/CD tools
- secrets management
- container registries
Use fewer tools, but use them well.
For observability:
- keep logs useful, not verbose
- sample traces if volume is high
- set retention policies intentionally
- archive old logs instead of keeping everything hot
9) Use the cloud billing tools aggressively
Before redesigning everything, find the top offenders:
- AWS Cost Explorer
- AWS Budgets
- CUR (Cost and Usage Report)
- Trusted Advisor
- Compute Optimizer
Focus on:
- top services by cost
- top resources by cost
- idle resources
- underutilized instances
- data transfer and NAT spend
- EBS volumes and snapshots
- orphaned load balancers, IPs, and volumes
10) Create an architecture simplicity policy
To keep things from getting complicated again, define a few rules:
- default to managed services
- no new database without approval
- no new service unless there’s a clear scaling or ownership reason
- no always-on infra for batch jobs
- every non-prod environment must have a shutdown plan
- every resource must have an owner and cost center tag
- review architecture quarterly
A practical simplification plan
If you want a step-by-step approach:
Week 1:
- identify top 10 AWS cost drivers
- find idle/orphaned resources
- review NAT, EBS, and data transfer costs
Week 2:
- right-size compute and databases
- clean up non-prod environments
- reduce log retention
Week 3–4:
- replace self-managed components with managed services
- merge low-value microservices
- simplify deployment and observability
Ongoing:
- monthly cost review
- quarterly architecture review
- enforce service and environment standards
If you want, I can also help you with a specific AWS cost-simplification checklist or a decision tree for whether to use EC2, ECS, Lambda, RDS, or a modular monolith.