Skip to content

A tool to discover unallocated EIP Addresses and their existence in any Security Groups.

License

Notifications You must be signed in to change notification settings

spekosolutions/aws.eip.auditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find Unused EIPs in AWS

This code allows us to find unused ip addresses in AWS and searches security groups for any reference of them. This allows us to save costs and keep it clean.

Installation

This script requires python to run.

Step 1 - Setup venv (optional)

$ virtualenv .venv
$ source .venv/bin/activate  

Step 2 - Install Requirements

$ pip install -r requirements.txt

Scenarios:

  1. Search all regions for unused ip addresses, and for referecnces to all security groups in the same region:
AWS_PROFILE=<profile name> python unused_ip_addresses.py --region all
  1. Search a specific region for all unused ip addresses, and for references to all security groups in that region:
AWS_PROFILE=<profile name> python unused_ip_addresses.py --region us-east-1
  1. Search a specific region for a specified list of unused ip addresses, and for referecnces to all scurity groups in that region:
AWS_PROFILE=<profile name> python unused_ip_addresses.py --region us-east-1 --ip_addresses 10.1.1.1,10.2.2.2,10.3.3.3

About

A tool to discover unallocated EIP Addresses and their existence in any Security Groups.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages