<?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: Tomson-xx</title>
    <description>The latest articles on DEV Community by Tomson-xx (@tomson-xx).</description>
    <link>https://dev.to/tomson-xx</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%2F4263926%2F9ed17fab-4eea-425f-99e9-3df8f20e9ee3.png</url>
      <title>DEV Community: Tomson-xx</title>
      <link>https://dev.to/tomson-xx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tomson-xx"/>
    <language>en</language>
    <item>
      <title>How to Analyze an AWS Cost Explorer CSV Locally (Without Uploading Your Bill or Granting IAM Access)</title>
      <dc:creator>Tomson-xx</dc:creator>
      <pubDate>Thu, 26 Nov 2026 03:14:42 +0000</pubDate>
      <link>https://dev.to/tomson-xx/how-to-analyze-an-aws-cost-explorer-csv-locally-without-uploading-your-bill-or-granting-iam-access-j6n</link>
      <guid>https://dev.to/tomson-xx/how-to-analyze-an-aws-cost-explorer-csv-locally-without-uploading-your-bill-or-granting-iam-access-j6n</guid>
      <description>&lt;p&gt;Most AWS cost tools ask you to set up a cross-account IAM role or upload your billing exports to a third-party backend. If you just want to figure out why last month's AWS bill jumped, that's a lot of friction—and a non-starter if your company restricts sharing raw billing data.&lt;/p&gt;

&lt;p&gt;You can do the first pass locally in your browser: export a CSV from AWS Cost Explorer, open it in a client-side analyzer like &lt;a href="https://billcheckup.fyi/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ce_csv_guide" rel="noopener noreferrer"&gt;Bill Checkup&lt;/a&gt;, and use the breakdown to decide which read-only AWS CLI checks to run next.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick tip before you export:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Choose &lt;strong&gt;Group by → Service&lt;/strong&gt; if you want a high-level view of which service leads your bill.&lt;/li&gt;
&lt;li&gt;Choose &lt;strong&gt;Group by → Usage type&lt;/strong&gt; if you want exact charge line items (&lt;code&gt;NatGateway-Bytes&lt;/code&gt;, &lt;code&gt;PublicIPv4:IdleAddress&lt;/code&gt;, &lt;code&gt;EBS:VolumeUsage.gp2&lt;/code&gt;, etc.) and want automated cost-trap checks to run.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  1. Export your costs from AWS Cost Explorer
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Billing and Cost Management → Cost Explorer&lt;/strong&gt; in the AWS console using an account or role with billing read access.&lt;/li&gt;
&lt;li&gt;Pick the range and grouping that fit your question:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Monthly review:&lt;/strong&gt; Last complete month.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sudden bill spike:&lt;/strong&gt; A few days before and after the jump, with &lt;strong&gt;Daily&lt;/strong&gt; granularity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Grouping:&lt;/strong&gt; &lt;strong&gt;Group by → Service&lt;/strong&gt; for the overview, or &lt;strong&gt;Group by → Usage type&lt;/strong&gt; to isolate specific charges.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Download CSV&lt;/strong&gt; (or &lt;strong&gt;Download as CSV&lt;/strong&gt; in newer console views). Keep the date range, filters, and cost metric identical if you export both views to compare them.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Official reference: &lt;a href="https://docs.aws.amazon.com/cost-management/latest/userguide/ce-download-csv.html" rel="noopener noreferrer"&gt;AWS Cost Explorer CSV download instructions&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Open the CSV locally in your browser
&lt;/h2&gt;

&lt;p&gt;Go to &lt;a href="https://billcheckup.fyi/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ce_csv_guide" rel="noopener noreferrer"&gt;Bill Checkup&lt;/a&gt; and select &lt;strong&gt;Upload Cost Explorer / CUR CSV&lt;/strong&gt; (or drag and drop the file).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Raw billing rows stay on your device:&lt;/strong&gt; The file is parsed inside a browser Web Worker. You can verify this yourself by opening DevTools → &lt;strong&gt;Network&lt;/strong&gt;, clearing the log, and loading a CSV—or by switching the Network tab to &lt;strong&gt;Offline&lt;/strong&gt; after the page loads and opening the CSV again (&lt;a href="https://billcheckup.fyi/how-it-works?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ce_csv_guide" rel="noopener noreferrer"&gt;verification steps&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No AWS credentials:&lt;/strong&gt; No IAM role, no access keys, and no signup for local breakdowns.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No CSV handy?&lt;/strong&gt; Click &lt;strong&gt;&lt;a href="https://billcheckup.fyi/?sample=1&amp;amp;utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ce_csv_guide" rel="noopener noreferrer"&gt;Try with sample bill&lt;/a&gt;&lt;/strong&gt; to load a synthetic 7-day export right away.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why &lt;code&gt;Top 10 usage types&lt;/code&gt; or &lt;code&gt;Findings&lt;/code&gt; can be empty on a Service CSV
&lt;/h3&gt;

&lt;p&gt;AWS Cost Explorer puts only one grouping dimension into each CSV. A file grouped by &lt;strong&gt;Service&lt;/strong&gt; does not include usage-type tokens, so rule-based checks cannot match line items like &lt;code&gt;NatGateway-Bytes&lt;/code&gt; or &lt;code&gt;PublicIPv4:IdleAddress&lt;/code&gt;. If you started with &lt;strong&gt;Service&lt;/strong&gt;, go back to Cost Explorer, optionally filter to your top service, switch &lt;strong&gt;Group by → Usage type&lt;/strong&gt;, and open that second CSV.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Turn the biggest charge into a read-only next check
&lt;/h2&gt;

&lt;p&gt;The built-in sample uses synthetic CUR 2.0 data covering 7 days ($396.25 net cost), so it populates both &lt;strong&gt;By service&lt;/strong&gt; and &lt;strong&gt;Top 10 usage types&lt;/strong&gt; together:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F65ole2f15zenr68e1f0a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F65ole2f15zenr68e1f0a.png" alt="Bill Checkup local cost breakdown of the 7-day sample showing SageMaker at USD 212.52, NAT Gateway data processing at USD 15.12, and NAT Gateway hours at USD 7.56" width="800" height="645"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is how to turn those top rows into concrete, read-only follow-up checks:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where to look&lt;/th&gt;
&lt;th&gt;Sample line item&lt;/th&gt;
&lt;th&gt;What to check next&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;By service&lt;/strong&gt; / &lt;code&gt;USE1-Host:ml.g5.xlarge&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;SageMaker — $212.52&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Run &lt;code&gt;aws sagemaker list-endpoints&lt;/code&gt; in the billed Region and compare endpoint hours against invocation metrics.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Top 10 usage types&lt;/strong&gt; (&lt;code&gt;USE1-NatGateway-Bytes&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;NAT Gateway data processing — $15.12&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Match spike days against deployments, container image pulls, or private-subnet S3/DynamoDB traffic.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Top 10 usage types&lt;/strong&gt; (&lt;code&gt;USE1-NatGateway-Hours&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;NAT Gateway hours — $7.56&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Check how many gateways are provisioned across AZs and which route tables still point to them.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Separating &lt;code&gt;NatGateway-Bytes&lt;/code&gt; from &lt;code&gt;NatGateway-Hours&lt;/code&gt; saves a lot of guesswork: if bytes spiked while hours stayed flat, check whether same-Region S3 or DynamoDB traffic is missing a free Gateway Endpoint. If you want to model that tradeoff quickly, you can also test numbers in the &lt;a href="https://billcheckup.fyi/tools/nat-gateway-cost-calculator?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ce_csv_guide" rel="noopener noreferrer"&gt;NAT Gateway Cost Calculator&lt;/a&gt; or read the full &lt;a href="https://billcheckup.fyi/blog/why-is-my-nat-gateway-bill-so-high?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ce_csv_guide" rel="noopener noreferrer"&gt;NAT Gateway troubleshooting guide&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. When to switch from Cost Explorer CSV to CUR 2.0
&lt;/h2&gt;

&lt;p&gt;Cost Explorer CSVs are the fastest way to narrow down a surprise charge, but &lt;strong&gt;Service&lt;/strong&gt; and &lt;strong&gt;Usage type&lt;/strong&gt; exports do not include resource IDs. When you need resource-level attribution—plus service, Region, and usage type in one file—create a &lt;strong&gt;CUR 2.0&lt;/strong&gt; standard data export with &lt;strong&gt;Include resource IDs&lt;/strong&gt; enabled. Bill Checkup reads &lt;code&gt;.csv&lt;/code&gt; and &lt;code&gt;.csv.gz&lt;/code&gt; CUR 2.0 files locally too.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://billcheckup.fyi/blog/how-to-analyze-aws-cost-explorer-csv-locally" rel="noopener noreferrer"&gt;billcheckup.fyi/blog/how-to-analyze-aws-cost-explorer-csv-locally&lt;/a&gt;. You can &lt;a href="https://billcheckup.fyi/?sample=1&amp;amp;utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=ce_csv_guide" rel="noopener noreferrer"&gt;try the interactive sample bill here&lt;/a&gt;—and if you have a real-world AWS export quirk or missing cost rule, I'd love to hear about it in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>aws</category>
      <category>devops</category>
    </item>
    <item>
      <title>Why is my NAT Gateway bill so high?</title>
      <dc:creator>Tomson-xx</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:01:21 +0000</pubDate>
      <link>https://dev.to/tomson-xx/why-is-my-nat-gateway-bill-so-high-3ddg</link>
      <guid>https://dev.to/tomson-xx/why-is-my-nat-gateway-bill-so-high-3ddg</guid>
      <description>&lt;h2&gt;
  
  
  Why the charge appears
&lt;/h2&gt;

&lt;p&gt;A team moves its application into private subnets and makes no change to request volume. The next bill still jumps. The application now sends image pulls, software updates, backups, and other outbound traffic through NAT gateways, and the gateways have an hourly cost even when traffic is quiet.&lt;/p&gt;

&lt;p&gt;Separate the cost into gateway-hours and processed bytes. Multiple zonal gateways can increase the baseline, while a small number of busy jobs can dominate the per-GB line item. Cross-AZ or other transfer charges can also show up as separate billing lines.&lt;/p&gt;

&lt;h2&gt;
  
  
  Find it in Cost Explorer or CUR
&lt;/h2&gt;

&lt;p&gt;In Cost Explorer, group by Usage type over the last 30 days and search for NatGateway-Hours and NatGateway-Bytes. Regional prefixes can vary. If you see a flat hourly baseline and an isolated spike in bytes, start with workloads that transferred data during that spike.&lt;/p&gt;

&lt;p&gt;In CUR 2.0, filter line_item_usage_type for those tokens, then sum line_item_unblended_cost by Region and day. Group by line_item_resource_id where the export provides it. Keep data-transfer rows separate so you can compare the NAT charge with the cost of the network path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read-only CLI checks
&lt;/h2&gt;

&lt;p&gt;Run these commands in the billed account. Replace uppercase placeholders with your own values.&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-nat-gateways --region REGION
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws ec2 describe-route-tables --region REGION --filters &lt;span class="nv"&gt;Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;vpc-id,Values=VPC_ID
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;aws ec2 describe-vpc-endpoints --region REGION --filters &lt;span class="nv"&gt;Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;vpc-id,Values=VPC_ID
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Match the NAT IDs to the route tables used by the affected subnets. For same-Region S3 and DynamoDB traffic, look for gateway endpoints and check that the relevant route tables are associated. Gateway endpoints have no additional endpoint charge and can keep matching traffic off the NAT path.&lt;/p&gt;

&lt;p&gt;The hourly NAT charge continues while the gateway is provisioned. Check which workloads still need internet egress and which availability requirements the current layout serves before considering a topology change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scan your own bill locally
&lt;/h2&gt;

&lt;p&gt;If you don't want to check these services one Region at a time, you can drop a Cost Explorer CSV or CUR 2.0 export (&lt;code&gt;.csv&lt;/code&gt; / &lt;code&gt;.csv.gz&lt;/code&gt;) into &lt;a href="https://billcheckup.fyi" rel="noopener noreferrer"&gt;Bill Checkup&lt;/a&gt; — it parses 100% locally in your browser with zero AWS IAM permissions required and flags common idle charges automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Official references
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://aws.amazon.com/vpc/pricing/" rel="noopener noreferrer"&gt;VPC pricing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.aws.amazon.com/vpc/latest/privatelink/gateway-endpoints.html" rel="noopener noreferrer"&gt;Gateway endpoint guide&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

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