Skip to main content

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

Project description

EC2 Reaper

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
ec2_reaper-0.1.8-py2.py3-none-any.whl (10.2 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Dec 27, 2017
ec2-reaper-0.1.8.tar.gz (18.2 kB) Copy SHA256 hash SHA256 Source None Dec 27, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page