5 Cost Optimization Tactics for Your AWS Bill

Five tactics to reduce your AWS bill, from right-sizing instances and Savings Plans to removing idle resources and cutting data transfer charges.

By VVVHQ Team ·

AWS bills grow quietly. Instances sized for a launch-day peak keep running at that size, test environments outlive their projects, and discount programs go unused because nobody owns the decision. None of it is dramatic, which is why it survives month after month.

These five tactics cover most of what a first cost review finds. How much each one saves depends entirely on how your account is set up, so measure before and after rather than trusting anyone's percentage, ours included.

1. Right-size instances

Engineers size instances for peak load and rarely come back to them. An m5.xlarge that averages 15% CPU can usually run as an m5.large, which costs half as much per hour.

  1. Pull 30 days of CloudWatch metrics for CPU, memory and network. Memory needs the CloudWatch agent, because EC2 does not report it by default.
  2. List instances that stay low the whole time. Averaging under 40% CPU with no real peaks is a reasonable first filter.
  3. Check the list against AWS Compute Optimizer, which recommends instance types from the same usage data.
  4. Step down one size at a time, watch for a week, then decide on the next step.

Two more changes often come out of the same review. Bursty, mostly idle workloads fit T-family burstable instances. And Graviton (ARM) instances usually cost less per hour than the x86 equivalent, so services that build cleanly for ARM are worth testing on them.

2. Commit to Savings Plans for steady usage

Anything that runs around the clock at on-demand prices is a candidate for a commitment. AWS offers three kinds:

  • Compute Savings Plans apply to EC2, Lambda and Fargate in any region and any instance family. You commit to an hourly spend for one or three years.
  • EC2 Instance Savings Plans give a larger discount but are tied to one instance family in one region.
  • Reserved Instances still matter for services Savings Plans do not cover, such as RDS, ElastiCache, Redshift and OpenSearch.

AWS publishes the maximum discounts on its Savings Plans pricing page. What you get depends on term, payment option and instance family.

Cover only your baseline, the usage that never drops, and start with a one-year Compute Savings Plan, because it survives instance and region changes. Leave growth and experiments on on-demand or Spot until their usage settles. Check what you already have before buying more: we have reviewed accounts where the existing commitments were already right, and the useful answer was to buy nothing.

3. Remove idle and orphaned resources

Every account collects leftovers: volumes from deleted instances, snapshots with no retention set, load balancers in front of nothing.

| Resource | How it hides | List price (us-east-1) | |----------|-------------|---------------------| | Unattached EBS volumes | The instance was deleted, the volume was not | About $80 per TB-month on gp3 | | Old EBS snapshots | No retention policy | $0.05 per GB-month | | Public IPv4 addresses | Charged whether attached or not since February 2024 | $0.005 per hour, about $3.60 a month | | NAT gateways in unused VPCs | The VPC still exists | About $32 a month each before data | | Idle RDS instances | A staging database nobody uses | Depends on size, often the largest line here | | CloudWatch Logs ingestion | Debug logging left on | $0.50 per GB |

To clean up:

  1. Run the cost checks in AWS Trusted Advisor. The full set needs a Business support plan or higher.
  2. Use Cost Explorer to find resources with little or no usage.
  3. Tag everything with an owner. An untagged resource is usually one no team will defend.
  4. Set AWS Budgets alerts at 80% and 100% of the expected spend for each account or team.

4. Cut data transfer charges

Inbound data is free and outbound data is not, and NAT gateways charge for every gigabyte they process, about $0.045 per GB in most regions on top of their hourly fee.

  • Add gateway VPC endpoints for S3 and DynamoDB. They cost nothing, and traffic through them skips the NAT gateway's per-GB charge.
  • Keep traffic in one region where you can. Cross-region transfer is billed per GB, while EC2 to RDS traffic in the same Availability Zone is free.
  • Serve static assets through CloudFront. Transfer from S3 to CloudFront is free, and CloudFront's outbound pricing is usually lower than S3's.
  • Compress API responses. Text formats such as JSON shrink a lot under gzip or Brotli, and every byte saved is a byte you do not pay to send.
  • Look at what runs through each NAT gateway. Cost Explorer filtered on NAT gateway usage shows which subnets send the most.

The last point is where we found one client's spike. Its NAT gateway charges jumped after the number of jobs on its build scheduler rose about five-fold. The scheduler's agents ran as Fargate tasks and pulled their container image from an ECR repository in a different region, so every extra job added cross-region traffic through the NAT gateway. We created an ECR repository in the agents' own region and pointed a new task definition revision at it, shipped as a Terraform variables change. The application did not change, and the agents now pull from their own region.

5. Use Spot for work that can be interrupted

Spot Instances run on spare EC2 capacity at a large discount, up to 90% off on-demand according to AWS. AWS can take them back with a two-minute warning, so they suit work that can stop and restart:

  • CI/CD build agents
  • batch jobs and data pipelines
  • dev and staging environments
  • stateless web servers in an Auto Scaling group
  • machine learning training that checkpoints

To use them safely, request several instance types so capacity is easier to find, use an Auto Scaling group with a mixed instances policy that falls back to on-demand, and handle the two-minute notice by draining connections before shutdown. Keep databases and other stateful services off Spot.

Making it stick

Cost work fades unless someone owns it. Put each team's monthly spend in front of that team, make each team responsible for its own line, and ask for a monthly cost estimate in every architecture review for a new service.

A sensible order: run Compute Optimizer today and list the ten largest oversized instances; delete unattached volumes and old snapshots this week; look at Savings Plans for your baseline this month; and move CI runners and batch jobs to Spot this quarter.

If you would like a second pair of eyes on the bill, we do read-only AWS cost reviews with one of your engineers and report the result per cost line, including the lines that are already fine. Tell us which costs worry you.

Tags: AWS cost optimization, cloud cost reduction, FinOps, AWS Savings Plans, cloud spend management