How Can I Avoid Surprise AWS Costs from Forgotten Resources?
Asked by
propeller.pitch.test
I've been diving into AWS lately, but I keep forgetting to delete my test resources, which has led to some unexpected charges on my bills - like three EBS volumes I totally overlooked. To tackle this issue, I created a Python script that automatically scans all AWS regions for commonly wasted resources and provides detailed costs along with cleanup commands. It's open-source and I'd love to get some feedback! My tool checks for orphaned EBS volumes, unused Elastic IPs, idle load balancers, old snapshots, NAT gateways, and SageMaker notebooks. Has anyone else experienced surprise AWS charges? What resources have slipped through your fingers?
Answers
I took a look at your tool, and I have some feedback for you. First off, it seems like there are no tests to guarantee that it works as intended, which can be a deal-breaker for me. Also, I noticed that youโre committing directly to the master branch; for a project like this, it would be more reassuring to see commits going through a more structured process. I'd recommend implementing versioning and documenting each change to give it a more professional feel. Security is another concern; I'd want to know exactly what permissions are needed, maybe even suggesting an example IAM policy in your documentation. All in all, it looks promising, but I think there are a few key elements that need addressing before Iโd feel comfortable using it.
Reply to this answer
You might want to add a requirements.txt file with boto3; I think itโs missing right now.
Reply to this answer
Great question about your tool versus CloudCustodian! From what I gather, CloudCustodian is awesome but pretty complex. I think your tool aims for simplicity and quick results without all the YAML setup. Itโs less about a full compliance tool and more about finding those orphaned resources quickly and easily. Perfect for folks who just want a straightforward look at their potential waste!
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions