Skip to content

ankitsrao/aws-unused-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Unused Resources

aws_logo.png

Overview

Get the details of unused resources present across regions in the AWS account

Description

  • This script provides a detailed overview of the number of unused resources present in the AWS account.
  • It provides service-wise details of unused resources lying around in all the regions of the AWS account.

Service Coverage

Currently, the script supports below AWS services :

  • AWS::EC2::Volume
  • AWS::EC2::EIP
  • AWS::EC2::NetworkInterface
  • AWS::EC2::VPC
  • AWS::EC2::Subnet
  • AWS::EC2::SecurityGroup
  • AWS::ElasticLoadBalancing::LoadBalancer
  • AWS::ElasticLoadBalancingV2::LoadBalancer
  • AWS::IAM::User
  • AWS::IAM::Group

Pre-requisites

  • Workstation with Python version 3 and above
  • AWS python-based SDK: boto3. Installation command:
    • pip3 install boto3
  • pandas framework and openpyxl for reporting operations (xlsx file). Installation command(s):
    • pip3 install pandas
    • pip3 install openpyxl
  • User credentials (Access Key Id and Secret Accces Key) of a user having atleast the Security Audit permission and above on the AWS account

Example

  • This script can be executed on a python compiler (AWS Cloudshell, Powershell, bash, any command line tool with python installed)
  • Command:
    • python ./unused_aws_resources.py --accessKey <AWS Access Key Id> --secretKey <AWS Secret Access Key>

Output

  • The script will provide a summarized count of all unused resources in the account.

sample_output.jpg

  • For a detailed view, the user can refer to the .xlsx file that will be generated by the script.

About

List the unused resources in your AWS account

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages