{"id":51940,"date":"2017-09-25T15:54:08","date_gmt":"2017-09-25T10:24:08","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=51940"},"modified":"2023-09-06T11:57:05","modified_gmt":"2023-09-06T06:27:05","slug":"20-tips-and-tricks-to-make-aws-work-to-your-advantage","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/20-tips-and-tricks-to-make-aws-work-to-your-advantage\/","title":{"rendered":"20 Tips and Tricks to Make AWS Work to Your Advantage"},"content":{"rendered":"<h2><b>Introduction<\/b><\/h2>\n<p><span style=\"font-weight: 400\">Amazon Web Services, touted as a pioneer in the Cloud service providers, has been a consistent frontrunner in the IAAS and PAAS space. Organizations irrespective of their size have chosen AWS as their go-to Cloud service provider making it an undisputed contender in the area of Cloud services. With the margin in the race to the top constantly widening between AWS and its closest market competitor, their predominance can be attributed to their carefully crafted market strategy. AWS retains the top position because of its continuous innovation approach strategy as well as an attitude of expanding partner ecosystem. <\/span><\/p>\n<p>Let us delve deeper into each of these attributes that make AWS stand out so emphatically in such a competitive situation.<\/p>\n<h3><b>Continuous Innovation Strategy<\/b><\/h3>\n<p><span style=\"font-weight: 400\">In a short span of time of the first half of this year AWS has successfully <a title=\"added 422 services to its already illustrious portfolio\" href=\"http:\/\/insights.tothenew.com\/20-tips-tricks-for-companies-working-on-aws\">added 422 services to its already illustrious portfolio<\/a>. It has taken it further by integrating analytics and machine learning capabilities into its offerings. This gives AWS an advantage to stay abreast with the latest cloud trends and ahead of its competition.<\/span><\/p>\n<h3><b>Partner Ecosystem<\/b><\/h3>\n<p><span style=\"font-weight: 400\">AWS is also constantly expanding its partner ecosystem by adding several credible names to the list which adds to its reliability as a global Cloud service provider. Apart from that, AWS is spreading its footprints across the world with a strong and dependable network.<\/span><\/p>\n<p><span style=\"font-weight: 400\">According to a CloudTech<\/span> <a title=\"AWS holds 45% worldwide market share in cloud services\" href=\"https:\/\/www.cloudcomputing-news.net\/news\/2016\/oct\/31\/no-change-here-aws-continues-dominate-public-iaas-and-paas-markets\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">report<\/span><\/a><span style=\"font-weight: 400\">, AWS continues its position a global leader in Cloud with more than 45% worldwide market share as compared to its competitors like Microsoft, IBM, and Google.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The RightScale 2017 State of the Cloud<\/span> <a title=\"AWS is the top cloud service provider\" href=\"https:\/\/www.forbes.com\/sites\/louiscolumbus\/2017\/02\/18\/rightscale-2017-state-of-the-cloud-report-azure-gaining-in-enterprises\/#767cb1878481\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400\">Report<\/span><\/a><span style=\"font-weight: 400\"> reiterates that <\/span><span style=\"font-weight: 400\">AWS continues to lead in public cloud adoption.<\/span><\/p>\n<p><a title=\"AWS Services\" href=\"http:\/\/www.tothenew.com\/blog\/accelerate-your-cloud-performance-using-these-6-uncommon-aws-services\/\">Though AWS has come up with a myriad of services<\/a>, one can\u2019t help but notice that most of its services are either under-utilized or untapped to their true potential. The reason behind this under-utilization is often the lack of know-how and basic ignorance. This article, therefore, caters to insights from different user cases related to AWS. The primary objective is to offer your organization some hacks to save cost on the cloud infrastructure and manage it effectively.<\/p>\n<p><span style=\"font-weight: 400\">Let\u2019s explore each of these tips and tricks.\u00a0<\/span><\/p>\n<h2>20 Tips and\u00a0<span class=\"il\">Tricks<\/span>\u00a0to Get the Most Out Of AWS<\/h2>\n<h3><b>1. Elastic IP can be a Free of Cost Feature<\/b><\/h3>\n<p><span style=\"font-weight: 400\">AWS provides one free <a title=\"AWS Elastic IP\" href=\"http:\/\/www.tothenew.com\/blog\/migrate-elastic-ip-address-from-ec2-classic-to-ec2-vpc\/\">Elastic IP<\/a> with every running instance. <\/span><span style=\"font-weight: 400\">However, additional EIPs for that particular running instance is often chargeable<\/span><span style=\"font-weight: 400\"> and it can cost you in certain scenarios.<\/span><span style=\"font-weight: 400\"> AWS charges its customers for EIPs in instances when they are either not associated with any instance or if they are attached to a stopped instance. They ensure that the stopped instances don\u2019t have EIPs attached to them until required.<\/span><\/p>\n<p><span style=\"font-weight: 400\">On the other hand, EIPs can be remapped for up to 100 times per month without incurring any extra charge.<\/span><\/p>\n<h3><b>2. Save Big by Judicious Use of ALBs<\/b><\/h3>\n<p>Regular and rampant classic load balancers can be detrimental for an organization\u2019s budget. As per statistics, an organization is paying at least $18 for each load balancer. ALB comes to the rescue in such situations. They are not only <a title=\"AWS Cost optimization\" href=\"http:\/\/www.tothenew.com\/blog\/6-tips-for-aws-cost-optimization\/\">cheaper<\/a> than classic load balancers, but ALB also supports path based routing, host-based routing, and HTTP\/2. AWS ECS effectively supports ALB and can replace up to 75 ELBs with single ALB by proper utilization. However, ALBs only support http and https. So, if companies are using TCP protocol, they will still have to use ELB.<\/p>\n<h3><b>3. Record Aliases over the CNAME when Using Route 53<\/b><\/h3>\n<p>While using CNAMEs for various services like ALB Cloudfront etc., adding an Alias record type over the CNAME provides some additional benefits. AWS doesn\u2019t charge for Alias records sets queries and Alias records save time as AWS Route53 automatically recognizes changes in the record sets. Also, Alias records sets are not visible in reply from Route53 DNS servers making them more secure.<\/p>\n<h3><b>4. Follow the Best Practices of EBS Provisioning<\/b><\/h3>\n<p>EBS volumes are an essential part of the EC2 infrastructure and need special attention while provisioning. It is a better practice to Start with smaller sized EBS volumes as AWS has recently launched feature of resizing EBS volumes as and when the application demands. This solves the problem of provisioning larger sized EBS volumes at an initial level keeping in mind the future requirements. It no longer requires one to schedule downtimes to upgrade their EBS volume capacity. However, the command to acquire new EBS capacity needs to be issued manually. Since provisioned EBS volumes generally have a higher cost as compared to general purpose EBS volumes using smaller EBS volumes also saves on cost.<\/p>\n<h3><b>5. Use Multi-AZ RDS for Effective Application Backup and Recovery<\/b><\/h3>\n<p><span style=\"font-weight: 400\">In case of failure, AWS switches the same RDS endpoint to the point of the standby machine which can take up to 30 seconds, but the applications keep on working seamlessly. Backups and maintenance are first performed to the standby instance, followed by an automatic failover making the whole process smoother. Also, IO activity is not suspended <\/span><span style=\"font-weight: 400\">while taking backups as they are taken from standby instance<\/span><span style=\"font-weight: 400\">.<\/span><\/p>\n<h3>6. Configure Multiple Alarms on Cloudwatch to Spike Notifications<\/h3>\n<p>Cloudwatch alarms are triggered only when they breach certain threshold. If a metric has already breached its threshold value and notified a team, then the alarm will only notify for the second time if the same threshold, <span style=\"font-weight: 400\">doesn&#8217;t have the option for escalating an alarm to a different team if that alarm is not resolved in a stipulated time period. Therefore, <\/span><span style=\"font-weight: 400\">to tap the AWS Cloudwatch to its fullest, configure multiple alarms on Cloudwatch for a single incident at different time intervals to notify different teams.<\/span><\/p>\n<h3><b>7. Make Sure to Delete Snapshots while Deregistering AMIs<\/b><\/h3>\n<p>EBS snapshots are stored in S3 and do incur storage cost. This means the more AMIs created, the more you pay for storage cost. An AMI gets removed from your account when you deregister the AMI but their EBS don\u2019t get deleted automatically. These are called zombie or orphan snapshots as their parent AMI doesn\u2019t exist and eat up the storage costs. One needs to manually delete these snapshots to free up some storage to combat this problem.<\/p>\n<h3><b>8. Leverage Compression at the Edge Feature in Cloudfront<\/b><\/h3>\n<p>Organizations can use compression at edge feature of <a title=\"Cloudfront while serving web content\" href=\"http:\/\/www.tothenew.com\/blog\/streaming-videos-on-demand-using-amazon-cloudfront-and-s3\/\">Cloudfront while serving web content<\/a>. Cloudfront automatically compresses the assets and delivers the compressed content to the client not only saving the data transfer cost but also pace up the content download.<span style=\"font-weight: 400\">With this, you can directly compress and serve content from S3. <\/span><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<h3><b>9. Efficient use of S3 enables higher savings<\/b><\/h3>\n<p>S3 can produce huge savings when dealing with large sized data by leveraging the S3 RRS (Reduced Redundancy Storage) and infrequent access service. AWS keeps their data in a single region backed up in multiple AZs and not in all the regions. This doesn\u2019t mean that the data is less secure. They can still use RRS for some less critical data.<\/p>\n<p><span style=\"font-weight: 400\">They can also use Glacier for archival of data as Glacier supports data retrieval in a few minutes.<\/span><\/p>\n<h3><b>10. Replicating Critical S3 Data<\/b><\/h3>\n<p>To replicate or backup the critical S3 data to other regions, companies now have a feature of cross-region replication of an S3 bucket to a different region. As soon as the data is uploaded in the source bucket, it will automatically replicate to the destination bucket in a different region. This feature only works with buckets in a different region and not in the same region.<\/p>\n<h3><b>11. Save Time and Effort while Data Retrieval from Glacier<\/b><\/h3>\n<p>Glacier is a very helpful feature in data archival. However, data retrieval from Glacier can be an expensive affair. Even though the process is slightly tedious in the beginning but data that can be placed in the form of large zipped files should be stored in smaller chunks. It is ideal to move data in in small chunks instead of large chunks because to it is easier to restore a small-sized file in small-sized chunk than in a large-sized chunk. This will also make it easier to access and at a <a title=\"cost optimization with AWS\" href=\"http:\/\/www.tothenew.com\/blog\/aws-cost-optimization-series-blog-2-infrastructure-monitoring\/\">smaller cost<\/a> as retrieving a large data chunk for a small file will have you pay the cost for the retrieval of the entire big data chunk.<\/p>\n<h3><b>12. Avoid using T2 Instances in Production Environment<\/b><\/h3>\n<p>T2 instances shouldn\u2019t be used in production environment as they are not designed to handle continuous production workloads for a long duration. However, the instances get a specific number of CPU credits per hour which can be utilized at the time of heavy workload for some time. Once the system consumes all its CPU credits, then it will again come to its baseline performance, degrading any CPU intensive mission critical task running on the production server.<\/p>\n<h3><b>13. Optimize IO Performance for High-performance Instances<\/b><\/h3>\n<p>Even the high-performance instances may warrant issues related to IO. One must be aware that EBS optimized instances offer better accessibility and faster response between EC2 and EBS volumes. The new-generation EC2 instances like C4, M4 series are EBS optimized by default. However, instances like C3 or M3, one still needs to manually check the EBS optimized option for high-performance. There is an additional cost associated to avail this feature.<\/p>\n<h3><b>14. Use Versioned Object Names to avoid Cloudfront invalidations<\/b><\/h3>\n<p>Purging Cloudfront cache is a time taking process and it is free for up to 1000 requests every month. In order to prevent invalidating CloudFront cache multiple times, companies can use versioned object names. This can really help in fetching the updated object without overwriting the existing object on CloudFront and is a much faster and reliable approach.<\/p>\n<h3><b>15. Save Costs on AWS Screenshots<\/b><\/h3>\n<p>When you create an EBS volume based on a snapshot, the new volume begins as a replica of the original volume. <span style=\"font-weight: 400\">EBS snapshots stored in S3 are incremental in nature. If you are creating a snapshot of a volume for the first time, the snapshot size would be the same as the disk usage. However, if their data is not changing too much, the storage size accumulated by the snapshots would be more or less the same as previous due to incremental nature of EBS snapshots.<\/span><\/p>\n<h3><b>16. Monitor your AWS Usage<\/b><\/h3>\n<p>You don\u2019t need a third party application to keep a tab on your AWS account. AWS comes with a<\/p>\n<p><span style=\"font-weight: 400\">billing alert feature to keep the customer apprised about their usage and<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\">expenses. This allows customers to plan their AWS bandwidth and handle any<\/span><span style=\"font-weight: 400\"><br \/>\n<\/span><span style=\"font-weight: 400\">sudden spikes in the bill.<\/span><\/p>\n<h3><b>17. Give Your Account the AWS Limits Advantage<\/b><\/h3>\n<p>Every service of AWS comes with a soft limit in specific regions. Having a clear idea of the region-specific server requirements is helpful decreasing the server limits of other regions to zero. So, even if your account\u2019s security is compromised, AWS limits will prevent attackers from being able to perform any malicious activity in other regions keeping the AWS billing under control. These limits can be availed for EC2, RDS, ECS among other <a title=\"AWS Services\" href=\"http:\/\/www.tothenew.com\/devops-aws\">AWS services<\/a><\/p>\n<h3><b>18. Remove Unnecessary CloudWatch Resources to Save Cost<\/b><\/h3>\n<p>You can remove alerts and notifications related to insufficient data, monitoring of nonproduction EC2 instances, redundant <a title=\"Cloudwatch monitoring\" href=\"http:\/\/www.tothenew.com\/blog\/cloudfront-monitoring-using-cloudwatch\/\">CloudWatch<\/a> alarms and create custom metrics for the important parameters. It is also useful to remove non-functional and unused dashboards. This exercise will help you reduce some of the superfluous costs incurred.<\/p>\n<h3><b>19. Save by Identifying and Segregating EC2 Workloads<\/b><\/h3>\n<p>Organizations can leverage spot instances for ad-hoc tasks and spot-fleet for QA\/Test environments to optimize EC2 instances. You can migrate applications to a dockerized platform and use ECS for making the use of EC2 by running multiple containers on the same servers that can save any additional costs to be incurred.<\/p>\n<h3><b>20. Warm-up your ELB resources before the Big Day<\/b><\/h3>\n<p>An anticipated influx of heavy traffic on a certain occasion, event etc. can negatively impact an application with issues as the website may become unresponsive to the users beyond application bandwidth. It is advisable in a scenario to plan and prepare your ELB to handle such a huge traffic. You can inform AWS about such this sudden surge at least a day in advance by raising a ticket to AWS support system so that they can add more nodes behind LBs. This would make the application more reliable in handling such workloads. This will help your organization prevent any application downtime caused due to traffic.<\/p>\n<h2><b>Conclusion<\/b><\/h2>\n<p><span style=\"font-weight: 400\">AWS has rightly gained its status as the most sought-after cloud provider giving its users some compelling benefits. Since infrastructure entails a significant capital expenditure, organizations need to be very particular about maintaining their infrastructure on the cloud. A little wisdom on cloud expenditure can help you avoid procuring services that you will not use. AWS has effectively changed the world of startups with is user-friendliness, flexibility, scalability, pricing and many such advantages. If you are still contemplating whether or not to choose AWS, you can read our blog on<\/span> <a href=\"http:\/\/www.tothenew.com\/blog\/top-10-benefits-of-using-aws\/\"><span style=\"font-weight: 400\">AWS benefits<\/span><\/a><span style=\"font-weight: 400\"> to gain clarity. You can also download our whitepaper on <a title=\"20 Tips and Tricks Companies must know while working on AWS\" href=\"http:\/\/insights.tothenew.com\/20-tips-tricks-for-companies-working-on-aws?_ga=2.241395074.1289557721.1506333982-1850373921.1476862388\">20 Tips and Tricks Companies Must Know While Working on AWS<\/a> for a more in-depth take on these best practices.\u00a0If you have already chosen AWS, with the help of these tricks and tips you can make a huge difference in Cloud cost and utilize your cloud infrastructure services to their full potential.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Amazon Web Services, touted as a pioneer in the Cloud service providers, has been a consistent frontrunner in the IAAS and PAAS space. Organizations irrespective of their size have chosen AWS as their go-to Cloud service provider making it an undisputed contender in the area of Cloud services. With the margin in the race [&hellip;]<\/p>\n","protected":false},"author":961,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":7},"categories":[1174,4682,2348,4112,3917,1994,1],"tags":[2119,4623,4177,1172,248,2937,3987,4739,1332,4563,573,1897,4740],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/51940"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/961"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=51940"}],"version-history":[{"count":10,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/51940\/revisions"}],"predecessor-version":[{"id":58335,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/51940\/revisions\/58335"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=51940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=51940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=51940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}