DEV Community

Rahul
Rahul

Posted on

How to save upto 50% of your AWS costs

Let’s discuss some tips and tricks to reduce the cost of the most used AWS services - RDS, EC2, S3, DynamoDB, CloudFront.

RDS

  • Migrate to latest graviton based instances. According to AWS, Graviton2 instances provide up to 35% performance improvement and up to 52% price/performance improvement.
  • Opt for reserved instance, if you know your load. Can save upto 60% when compared to normal On-Demand database.
  • Upgrade to latest SQL version, for higher performance, speed and also security.
  • Don’t use multi A-Z, if you don’t need it.
  • Downgrade or auto shutdown staging, testing instances, when not in-use.
  • Disable performance insights for non-prod database.
  • Auto delete snapshots that are too old.

EC2

  • Migrate to latest graviton based instances.
  • Opt for reserved instance, if you know your load. Upto 72% savings compared to normal On-Demand EC2 instances.
  • Move to lambda for infrequent batch jobs, instead of running EC2 all day long. 1 million executions FREE per month.
  • You can also pick spot instances for testing, staging environments. Upto 90% discount when compared to normal On-Demand EC2 instances.
  • Upgrade to latest EC2 versions.
  • Downgrade or auto shutdown staging, testing instances, when not in-use.
  • Use smaller instance, instead of 1 large instance, so that you can scale up and down when necessary.
  • Choose EC2 in same region as other service like S3, DynamoDB to avoid unnecessary data transfers.

S3

  • Enable S3 Intelligent-Tiering to automatically move infrequently accessed files to lower priced S3. Can save up to 95% on storage costs for data that is not accessed for months, or even years, at a time.
  • Store compressed formats, if possible.
  • Enable CloudFront and serve through it, to reduce requests and data transfer cost.

DynamoDB

  • Check your minimum load and use provisioned capacity. 25 Write Capacity Units and 25 Write Capacity Units are FREE every month.
  • Use on demand for lesser used tables.
  • Prefer queries over scans.
  • Use shorter attribute names.
  • Avoid strongly consistent reads and transactions, wherever possible.

CloudFront

  • Auto Compress via CloudFront to reduce data transfer.
  • Go for savings plan, if you know your load. Can save upto 30% when compared to on-demand.

In Conclusion…

I haven’t covered many AWS services and tips to reduce cloud costs. But these are some ways by which you can reduce your AWS cloud bill upto 50%.


That’s it! Please let me know about your views and comment below for any clarifications.

If you found value in reading this, please consider sharing it with your friends and also on social media 🙏

Also, to be notified about my upcoming articles, subscribe to my newsletter below (I’ll not spam you 😂)

Blog of Codes | Rahul | Substack

Articles about cloud architecture and programming. Click to read Blog of Codes, by Rahul, a Substack publication. Launched a month ago.

favicon blogofcodes.substack.com

You can find me on Twitter and LinkedIn ✌️

Top comments (0)