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.8.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

ec2_reaper-0.1.8-py2.py3-none-any.whl (10.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ec2-reaper-0.1.8.tar.gz.

File metadata

  • Download URL: ec2-reaper-0.1.8.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ec2-reaper-0.1.8.tar.gz
Algorithm Hash digest
SHA256 315c9c6d1b5a767f7fdbe4bf715314a1c96cdbcf68c3e81d4639104aea5e6dbb
MD5 bcce1f39e80a706b2a163ea48bf937d9
BLAKE2b-256 3e31568f4c3f1fb57b7e499ccbfeaf4415243e39e4c4a279c8681858ad906c16

See more details on using hashes here.

File details

Details for the file ec2_reaper-0.1.8-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ec2_reaper-0.1.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a7ad388c1a33f0628538e4df5ef202cf08e35153e18964b8c41c24a4bcf3d34b
MD5 8ba3f4ad8142d7788dddc6d81a34a1b5
BLAKE2b-256 71b648cfd38ef0141e7feb275e57e43c9812c0fabd74660de05f5d0a6206a097

See more details on using hashes here.

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