<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: TechWorld Solution</title>
    <description>The latest articles on DEV Community by TechWorld Solution (@techworldsolutionin).</description>
    <link>https://dev.to/techworldsolutionin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4255900%2Fe5bb4f3a-a00e-4ad9-81e7-c12e8770587c.png</url>
      <title>DEV Community: TechWorld Solution</title>
      <link>https://dev.to/techworldsolutionin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/techworldsolutionin"/>
    <language>en</language>
    <item>
      <title>5 AWS Cost Optimization Techniques Every Developer Can Run This Week</title>
      <dc:creator>TechWorld Solution</dc:creator>
      <pubDate>Fri, 20 Nov 2026 14:33:45 +0000</pubDate>
      <link>https://dev.to/techworldsolutionin/5-aws-cost-optimization-techniques-every-developer-can-run-this-week-2kg1</link>
      <guid>https://dev.to/techworldsolutionin/5-aws-cost-optimization-techniques-every-developer-can-run-this-week-2kg1</guid>
      <description>&lt;p&gt;&lt;strong&gt;By the Director, TechWorld Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Cloud cost is often treated as "the finance team's problem". But developers make most of the decisions that drive the bill: instance sizes, storage choices, log settings and whether a test environment stays up all weekend.&lt;/p&gt;

&lt;p&gt;Here are five practical AWS cost optimization techniques you can try this week, using tools you already have. None of them need a big project.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Find unattached EBS volumes
&lt;/h2&gt;

&lt;p&gt;When an EC2 instance is terminated, its volumes don't always go with it. Unattached volumes keep costing money.&lt;/p&gt;

&lt;p&gt;You can list them with the AWS CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws ec2 describe-volumes \
  --filters &lt;span class="nv"&gt;Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;status,Values=available \
  --query &lt;span class="s2"&gt;"Volumes[].{ID:VolumeId,Size:Size,Created:CreateTime}"&lt;/span&gt; \
  --output table
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check each one with its owner, take a snapshot if you're unsure, then delete what isn't needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Set log retention on CloudWatch log groups
&lt;/h2&gt;

&lt;p&gt;By default, CloudWatch log groups can keep logs indefinitely. For chatty services, that adds up.&lt;/p&gt;

&lt;p&gt;Find log groups with no retention set:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws logs describe-log-groups \
  --query &lt;span class="s2"&gt;"logGroups[?!retentionInDays].logGroupName"&lt;/span&gt; \
  --output text
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then set a sensible retention period for each, agreed with your team:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws logs put-retention-policy \
  --log-group-name /my/app/logs \
  --retention-in-days 30
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Stop non-production environments out of hours
&lt;/h2&gt;

&lt;p&gt;Development and test environments rarely need to run at night or at weekends. Scheduling them to stop outside working hours is one of the simplest AWS cost optimization techniques there is.&lt;/p&gt;

&lt;p&gt;Options include AWS Instance Scheduler, a small scheduled Lambda function, or EventBridge Scheduler calling the EC2 stop and start APIs. Start with one environment, confirm nobody is affected, then expand.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Right-size with real data
&lt;/h2&gt;

&lt;p&gt;Instances are often chosen "to be safe" and never revisited. AWS Compute Optimizer looks at your actual usage and suggests better-fitting instance types.&lt;/p&gt;

&lt;p&gt;You can pull recommendations from the CLI once Compute Optimizer is enabled for your account:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws compute-optimizer get-ec2-instance-recommendations \
  --query &lt;span class="s2"&gt;"instanceRecommendations[].{Instance:instanceArn,Finding:finding}"&lt;/span&gt; \
  --output table
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Treat the results as a starting point. Test the change in a non-production environment first, especially for memory-sensitive workloads.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Commit only after you've cleaned up
&lt;/h2&gt;

&lt;p&gt;Savings Plans and Reserved Instances can lower the cost of steady workloads. But committing before you've cleaned up means locking in waste.&lt;/p&gt;

&lt;p&gt;Do techniques 1 to 4 first. Then look at Cost Explorer's Savings Plans recommendations, and commit to a baseline you're confident will still be running. If you're weighing up the two options, this explanation of &lt;a href="https://techworldsolution.in/blog/aws-savings-plans-vs-reserved" rel="noopener noreferrer"&gt;Savings Plans vs Reserved Instances&lt;/a&gt; covers the trade-offs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bonus: check for idle Elastic IPs and old snapshots
&lt;/h2&gt;

&lt;p&gt;Two more quick checks. Public IPv4 addresses on AWS carry a charge, so look for Elastic IPs that aren't associated with anything:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws ec2 describe-addresses \
  --query &lt;span class="s2"&gt;"Addresses[?AssociationId==null].PublicIp"&lt;/span&gt; \
  --output text
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also review old EBS snapshots. Snapshots are useful, but they pile up quietly, especially when automated backups have no expiry. Agree on a retention period with your team and use Amazon Data Lifecycle Manager or AWS Backup policies to enforce it automatically, rather than cleaning up by hand every few months.&lt;/p&gt;

&lt;p&gt;Finally, check data transfer. Moving data between regions, or out to the internet, can add costs that are easy to miss. Keep chatty services close together where you can.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make it a habit, not a one-off
&lt;/h2&gt;

&lt;p&gt;A few habits keep costs from creeping back:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tag everything&lt;/strong&gt; with an owner and environment, so every cost has a name attached.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set AWS Budgets alerts&lt;/strong&gt; for each team or project.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add a cost check to code review&lt;/strong&gt; for infrastructure changes. A quick "do we need this size?" catches a lot.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review the bill monthly&lt;/strong&gt; with the people who build the systems.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A word of caution
&lt;/h2&gt;

&lt;p&gt;Cost optimization should never break reliability. Don't delete volumes or snapshots without checking with their owners, and don't shrink production resources without testing. The goal is to remove waste, not resilience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;You don't need a FinOps team to make a difference. Clean up unattached volumes, set log retention, stop idle environments, right-size with Compute Optimizer and only then commit to discounts. These five AWS cost optimization techniques are quick wins any developer can run, and they build habits that keep your cloud bill under control.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;&lt;a href="https://techworldsolution.in/" rel="noopener noreferrer"&gt;TechWorld Solution&lt;/a&gt; is a New Delhi-based IT services company working on AWS, Azure, DevOps and managed IT.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>devops</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
