Giter Club home page Giter Club logo

cleanup-unused-eip's Introduction

Example for releasing many unattached Elastic IP Addresses

The scripts are an example to solve a specific problem; when you have some unattached elastic IP addresses you want to maintain and then release all the remaining unattached elastic IP addresses.

Requirements

Python and boto3

whitelist_elastic_ips.py

Edit the script adding a string array of IP Addresses to tag with a Key Value pair. Run the script and it will tag all unattached elastcip IPs that match.

You can perform a permissions check by passing the parameter True as the last argument to the function tag_elastic_ip()

release_elastic_ips.py

Edit the script adding the key name used in the whitelist_elastic_ips.py. Run the script and it will release the unattached elastic IPs that do not have the key tag defined in the script.

You can perform a permissions check by passing the parameter True as the last argument to the function release_elastic_ip()

DISCLAIMER

Read through the scripts and execute at your own risk. The scripts will release elastic ips from your AWS account. Read through the scripts so you know what they are doing prior to executing the scripts.

cleanup-unused-eip's People

Contributors

chriswessells avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.