Skip to content

dalvarezquiroga/infoEC2VolumesReportUsage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Report about Volumes in all AWS Regions

Cost

We want reduce costs in our AWS account. Normally in DEVs accounts we have a lot of Volumes that users forget to delete and it doesn't remove automatically when you destroy an EC2 Instance (It depends).

This small script help you to identify them to take some action.

Your boss Finance will appreciate it ;-)

Technologies we’ll use:

  • AWS API (EC2)
  • Python3.9
https://linuxhostsupport.com/blog/how-to-install-python-3-9-on-ubuntu-20-04/ (Google)

Pre-requisites:

pip3 install boto3
pip3 install xlsxwriter

Deploy:

AWS_PROFILE=XXX python3 infoEC2VolumesReportUsage.py

Deploy Deploy

Testing

If everything is working well, we will see a new Excel in your same location:

Result

Licence

Apache

Result

Information

More info -->

https://aws.amazon.com/blogs/mt/controlling-your-aws-costs-by-deleting-unused-amazon-ebs-volumes/

https://github.com/akhan4u/unused_volumes/blob/master/unused_volumes.py

https://xlsxwriter.readthedocs.io/

https://www.nops.io/unused-aws-ebs-volumes/

David Álvarez Quiroga

About

We want to reduce costs in our AWS account... This small Python script help you to identify Volumes "available", to take some action.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages