Menu

AWS FinOps Field Notes (2026-11-02): Eliminating Idle NAT Gateways & Unattached EIPs with Python
πŸ“°

AWS FinOps Field Notes (2026-11-02): Eliminating Idle NAT Gateways & Unattached EIPs with Python

DEV Community: awsΒ·Ace7-coderΒ·9 days ago
#U7XlruIw
#devtoaws#devto#dev#cost#boto3
Reading 0:00
15s threshold

While auditing cloud infrastructure costs this week, recurring configuration gaps continue to quietly inflate monthly cloud bills.

Field Insight: The Hidden Cost Trap

Tim O'Brien: Says fifty abandoned 100 GB unattached EBS volumes cost $500/month ($6k/year), and that clearing a couple hundred forgotten S3 buckets and EBS volumes is a program rather than a script because every terabyte needs an owner to justify it.

Automated Detection: Auditing Idle NAT Gateways and Unattached Elastic IPs with Boto3

import boto3 from datetime import datetime , timedelta , timezone

def audit_idle_network_costs ( region = ' us-east-1 ' ): ec2 = boto3 . client ( ' ec2 ' , region_name = region ) cw = boto3 . client ( ' cloudwatch ' , region_name = region ) now = datetime . now ( timezone . utc ) seven_days_ago = now - timedelta ( days = 7 )

# 1. Unassociated Elastic IPs ($0.005/hr = ~$3.60/month each) eips = ec2 . describe_addresses ().…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.