Category: AWS Examples
Practical AWS SDK for JavaScript v3 scripts for costs, S3, IAM, EC2, Lambda, Route 53 and CloudFront.
-
Find EC2 Instances Stopped for Weeks and Still Costing You
A read-only AWS SDK v3 script that lists EC2 instances stopped for weeks, with the EBS and Elastic IP charges each one still runs…
-
Find Unused Security Groups in Your AWS Account
A TypeScript AWS SDK v3 script that lists security groups no network interface or rule uses, and deletes them only when you pass –apply.
-
Find and Delete Old RDS Manual Snapshots
A TypeScript script that lists manual RDS and Aurora snapshots older than N days and deletes them only behind an explicit flag.
-
Find IAM Access Keys Older Than 90 Days or Never Used
A TypeScript script that flags IAM access keys older than 90 days or unused for 45, and can deactivate them behind an explicit flag.
-
Find IAM Users Without MFA Using AWS SDK v3
A read-only TypeScript script that lists every IAM user, checks for a console password and MFA devices, and flags console users without MFA.
-
Find Unused Load Balancers in AWS With No Healthy Targets
A read-only AWS SDK v3 script that flags Application and Network Load Balancers with no targets, no healthy targets or no traffic in 14…
-
Find Idle NAT Gateways Costing You Money (AWS SDK v3)
A read-only AWS SDK v3 script that reports NAT gateways with no routes or no traffic in the last 14 days, and what each…
-
Set CloudWatch Log Retention for All Log Groups (SDK v3)
A dry-run-first AWS SDK v3 script that finds CloudWatch Logs log groups set to never expire and applies a retention period you choose.
-
Convert EBS gp2 Volumes to gp3 With AWS SDK v3
A dry-run-first AWS SDK v3 script that plans and applies gp2 to gp3 EBS volume changes without losing performance, with the monthly saving per…
-
Find Lambda Functions on Deprecated Runtimes (AWS SDK v3)
A read-only AWS SDK v3 script that lists Lambda functions on deprecated or soon-to-be-deprecated runtimes across all enabled regions.