Skip to main content

# 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) `sh $ virtualenv .venv $ source .venv/bin/activate `

Step 2 - Install Requirements

`sh $ 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: `sh AWS_PROFILE=<profile name> python unused_ip_addresses.py --region all `

2. Search a specific region for all unused ip addresses, and for references to all security groups in that region: `sh AWS_PROFILE=<profile name> python unused_ip_addresses.py --region us-east-1 `

3. Search a specific region for a specified list of unused ip addresses, and for referecnces to all scurity groups in that region: `sh 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 `

Release files for eip-auditor 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eip-auditor 1.0.2
File Size Uploaded
eip-auditor-1.0.2.tar.gz 4.9 kB Details

Release files / eip-auditor-1.0.2.tar.gz

Download URL eip-auditor-1.0.2.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ff14899004e42e44b13bdf9fa932d8f2bee2b159edb3ba81a3d852d05e9bb670
BLAKE2b-256 checksum
How to use checksums
869c584a76e554f75df9f4dbf9fef377c4126be00728538f11a1da447d168b94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/2.7

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page