{"id":469299,"date":"2022-06-30T23:41:52","date_gmt":"2022-06-30T20:41:52","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-reduce-your-aws-data-usage-bill\/"},"modified":"2022-06-30T23:41:52","modified_gmt":"2022-06-30T20:41:52","slug":"how-to-reduce-your-aws-data-usage-bill","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-reduce-your-aws-data-usage-bill\/","title":{"rendered":"#How To Reduce Your AWS Data Usage Bill"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2dbcc84dc24\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2dbcc84dc24\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-reduce-your-aws-data-usage-bill\/#%E2%80%9CHow_To_Reduce_Your_AWS_Data_Usage_Bill%E2%80%9D\" >&#8220;How To Reduce Your AWS Data Usage Bill&#8221;<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-reduce-your-aws-data-usage-bill\/#Use_AWSs_CloudFront_CDN\" >Use AWS\u2019s CloudFront CDN<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-reduce-your-aws-data-usage-bill\/#Use_AWS_Lightsail\" >Use AWS Lightsail<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-reduce-your-aws-data-usage-bill\/#Offload_To_External_Services\" >Offload To External Services<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-reduce-your-aws-data-usage-bill\/#Offload_to_Dedicated_Servers_with_Fixed_Bandwidth\" >Offload to Dedicated Servers with Fixed Bandwidth<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-reduce-your-aws-data-usage-bill\/#Have_On-Prem_Hardware_Use_AWS_Direct_Connect\" >Have On-Prem Hardware? Use AWS Direct Connect<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-reduce-your-aws-data-usage-bill\/#The_Obvious_Solution_Decrease_Your_Data_Usage\" >The Obvious Solution: Decrease Your Data Usage<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E2%80%9CHow_To_Reduce_Your_AWS_Data_Usage_Bill%E2%80%9D\"><\/span>&#8220;How To Reduce Your AWS Data Usage Bill&#8221;<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<div>\n<!-- UNCACHED CONTENT --><\/p>\n<figure style=\"width: 1200px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage wp-image-14848 size-full\" data-pagespeed-no-defer=\"\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/csit\/2021\/11\/c387c310.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1200\" height=\"675\" data-crediturl=\"https:\/\/www.shutterstock.com\/image-photo\/data-center-technician-running-maintenance-programme-1394052998\" data-credittext=\"Shutterstock\/Gorodenkoff\"\/><figcaption class=\"wp-caption-text\"><span class=\"type:primaryImage imagecredit\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.shutterstock.com\/image-photo\/data-center-technician-running-maintenance-programme-1394052998\">Shutterstock\/Gorodenkoff<\/a><\/span><\/figcaption><\/figure>\n<p>It\u2019s no secret that AWS\u2019s pricing is high, and data in particular comes at a premium. The compute may be cheap, with services like Lambda functions and EC2 instances, but if you\u2019re transferring out a lot of data, you\u2019re gonna be paying for it. Here\u2019s how to reduce that bill.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Use_AWSs_CloudFront_CDN\"><\/span>Use AWS\u2019s CloudFront CDN<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/cloudfront\/?tag=hotoge-20\">CloudFront is a Content Delivery Network<\/a>, or CDN, a service that sits in front of your website, API, or any other web service. It caches the result near the edge (close to the user), which improves performance, but it also can reduce the costs you pay in a number of ways.<\/p>\n<p>First off, CloudFront has a much larger free tier, and it\u2019s always free as well. You get 1 TB of data, an entire terabyte, for free each month. AWS\u2019s normal free tier is 100 GB, so for people using more than 1 TB, this change alone will save you $80 every month.<\/p>\n<p>For larger businesses spending way more than that, CloudFront is also priced aggressively per GB of data. If you compare <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/ec2\/pricing\/on-demand\/?tag=hotoge-20\">EC2\u2019s pricing<\/a> to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/cloudfront\/pricing\/?tag=hotoge-20\">CloudFront\u2019s pricing<\/a>, you\u2019ll see CloudFront offers huge savings over standard EC2 pricing. AWS\u2019s data pricing is tiered, so for the first 50 TB, you\u2019ll save 6%, then 15%, then up to 50% off if you\u2019re reaching petabyte-levels of data.<\/p>\n<p>Finally, CloudFront can also save you money in another way; by reducing stress on the origin servers with edge caching, you\u2019ll end up needing less origin servers. With a CDN, CloudFront\u2019s servers will take the brunt of the hit, meaning you can spend less on compute each month.<\/p>\n<p>It\u2019s important to note that CloudFront isn\u2019t just for websites\u2014it can be used for caching any kind of web requests, such as high-traffic GET requests to an API. Even if it\u2019s not caching, you can still put it in front of your API to serve data through it, saving you money in the process.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Use_AWS_Lightsail\"><\/span>Use AWS Lightsail<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In an effort to compete with simpler hosting providers aimed at regular people, like Digital Ocean, AWS created Lightsail, which offers simple pricing for simple compute instances, databases, and networking. These instances are designed for running basic hosting software like WordPress and NGINX, and are easy to set up with pre-made templates.<\/p>\n<p>The important part is that each package comes with fixed-rate bandwidth at an extremely cheap rate. The $5 instance, for example, comes with 2 TB of bandwidth\u2014which costs $85 on CloudFront, including the free tier\u2019s 1 TB.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" alignnone wp-image-2314 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/csit\/2019\/10\/f278c48d.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Choose your instance plan.\" width=\"700\" height=\"306\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>This is great, but it comes with a catch:<\/p>\n<blockquote><p>51.3. You may not use Amazon Lightsail in a manner intended to avoid incurring data fees from other Services (e.g., proxying network traffic from Services to the public internet or other destinations or excessive data processing through load balancing or content delivery network (CDN) Services as described in the Documentation), and if you do, we may throttle or suspend your data services or suspend your account.<\/p>\n<\/blockquote>\n<p>What this means in practice is that Lightsail should operate in its own VPC, and you shouldn\u2019t connect external services like EC2 or S3 to it with the intention of proxying it to save money. This clause is vague, so it\u2019s not clear if AWS allows, for example, serving image processing on S3 objects from a Lightsail instance, but if you\u2019re using 100% Lightsail, you should be fine.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>Amazon Lightsail Is AWS for Regular People<\/em><\/strong><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Offload_To_External_Services\"><\/span>Offload To External Services<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Sometimes, there are just services that can offer a better deal, and the solution is just to not use AWS for the things that are costing you the most money. You\u2019re <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/general\/\" data-internallinksmanager029f6b8e52c=\"3\" title=\"General\" target=\"_blank\" rel=\"noopener\">general<\/a>ly not locked-in to any particular cloud vendor, and there are many ways using multiple services, or \u201cmulti-cloud,\u201d can be beneficial.<\/p>\n<p>One thing you\u2019ll want to watch out for is transferring tons of data between clouds. For example, data transferred from AWS to Google Cloud Platform or Azure will count towards your data bill, because it\u2019s still being transferred out from AWS over the open internet. If you\u2019re not careful, multi-cloud can end up costing more money.<\/p>\n<p>For example, AWS S3 can be expensive. You\u2019d think the main cost would be data storage, but if you\u2019re serving content from it, you\u2019re also paying for data, and you\u2019re also paying for each type of request. For high traffic content, this can easily be hundreds of dollars a month while you pay next to nothing for \u201ccheap storage.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-14849\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/csit\/2021\/11\/07304508.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1167\" height=\"432\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>One solution to this is to swap to another S3 compatible service. S3 has an API definition, and other services can implement it, like Digital Ocean Spaces. Spaces is a barebones implementation, but it\u2019s reliable and much cheaper than S3 for data costs.\u00a0You can even <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/min.io\/\">self-host S3 from your own servers<\/a>.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>Should You Use an S3 Alternative For Object Storage?<\/em><\/strong><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Offload_to_Dedicated_Servers_with_Fixed_Bandwidth\"><\/span>Offload to Dedicated Servers with Fixed Bandwidth<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>With cloud services offering the ability to create and destroy hundreds of virtual machines at will, it\u2019s easy to forget that the old school solution exists\u2014buy a bare metal server in a datacenter.<\/p>\n<p>Many companies will offer dedicated servers that don\u2019t nickel and dime you for data usage. <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/redirect.viglink.com\/?key=204a528a336ede4177fff0d84a044482&amp;u=https%3A%2F%2Fwww.ovhcloud.com%2Fen%2Fbare-metal%2Frise%2Frise-game-1%2F\">OVH<\/a>, the third largest hosting provider in the world, sells machines that come with dedicated 500Mbps connections to the open internet.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15840\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/csit\/2022\/03\/092b0435.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1505\" height=\"607\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>It\u2019s not fancy, and it\u2019s not the best practice solution, but if you want to save money, it\u2019s always an option. You\u2019ll still want to make sure that you\u2019re not transferring lots of data out from AWS to another server.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Have_On-Prem_Hardware_Use_AWS_Direct_Connect\"><\/span>Have On-Prem Hardware? Use AWS Direct Connect<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A common problem for large companies is making the migration from on-premises hardware to cloud services. It\u2019s sometimes not even beneficial to migrate everything you might run on-prem, so you usually end up with a hybrid solution using cloud hardware for the things that save the most money.<\/p>\n<p>However, this can cost you money if you\u2019re transferring data back and forth between AWS and on-prem, especially considering this charge isn\u2019t present if you\u2019re entirely using one or the other.<\/p>\n<p>AWS has a solution for this called <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/directconnect\/?tag=hotoge-20\">AWS Direct Connect<\/a>, which is an enterprise-grade connection directly to AWS. It still charges for data, but at $0.02 per GB, it\u2019s much less than standard pricing. It also offers dedicated bandwidth up to 100 Gbps.<\/p>\n<p>Direct Connect isn\u2019t just some service you enable though\u2014it requires an actual direct physical connection. This can be arranged in a couple ways: colocate at an AWS Direct Connect datacenter, work with an<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/aws.amazon.com\/directconnect\/partners\/?tag=hotoge-20\"> AWS Partner<\/a> to set up a connection to your datacenter, or purchase a Physical direct Connect node.<\/p>\n<lite-youtube videoid=\"y4rIwSbdlS0\" style=\"background-image: url('https:\/\/i.ytimg.com\/vi\/y4rIwSbdlS0\/hqdefault.jpg');\">\n<button type=\"button\" class=\"lty-playbtn\"><br \/>\n<span class=\"lyt-visually-hidden\">Play Video<\/span><br \/>\n<\/button>\n<\/lite-youtube>\n<p>Either way, this option is specifically for large companies, and doesn\u2019t make economic sense unless you have a lot of on-premises hardware and are transferring tons of data.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"The_Obvious_Solution_Decrease_Your_Data_Usage\"><\/span>The Obvious Solution: Decrease Your Data Usage<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Of course, you can always lower your data usage by optimizing the size of what you send. Using Gzip and deflate compression is important, as is compressing web content served from your servers. Any requests that come out of AWS cost you money, so minimizing these requests should be a priority.<\/p>\n<p>For example, if you\u2019re serving images from S3, you probably want to make sure they\u2019re as optimized as possible. One of the benefits of AWS is easy automation, and it\u2019s quite simple to set up automatic image processing using Lambda Functions. This can easily halve the size of your images.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Automatically Compress Images in S3 with Lambda<\/em><\/strong><\/p>\n<p>Whatever the case, you\u2019ll want to take a look at your network architecture and see if there\u2019s any way you can serve the same service using less data.<\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong>\n<\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/devops\/how-to-reduce-your-aws-data-usage-bill\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;How To Reduce Your AWS Data Usage Bill&#8221; Shutterstock\/Gorodenkoff It\u2019s no secret that AWS\u2019s pricing is high, and data in particular comes at a premium. The compute may be cheap, with services like Lambda functions and EC2 instances, but if you\u2019re transferring out a lot of data, you\u2019re gonna be paying for it. Here\u2019s how&#8230;<\/p>\n","protected":false},"author":1,"featured_media":469300,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/csit\/2021\/11\/c387c310.png?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-469299","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/469299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=469299"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/469299\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/469300"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=469299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=469299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=469299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}