Skip to main content

CLI & module for terminating instances that match tag and age requirements.

Project description

EC2 Reaper

https://img.shields.io/pypi/v/ec2-reaper.svg https://img.shields.io/travis/inhumantsar/python-ec2-reaper.svg Updates

CLI & module for terminating instances that match tag and age requirements.

Features

  • Searches all (or specified) regions for instances.

  • Matches instances against a tag pattern.

  • Allows instances a grace period before termination.

  • Can be used as a Python module, CLI application, or an AWS Lambda function

Usage

Tag Matchers

[{“tag”: “Name”, “includes”: [], “excludes”: [“*”]}]

This is the default tag matcher and it will match anything that lacks a Name tag.

To terminate any instance named “cirunner”, the filter would look like so:

[{“tag”: “Name”, “includes”: [“cirunner”], “excludes”: []}]

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2017-11-27)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ec2-reaper-0.1.7.tar.gz (17.8 kB view hashes)

Uploaded Source

Built Distribution

ec2_reaper-0.1.7-py2.py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page