CLI & module for terminating instances that match tag and age requirements.
Project description
EC2 Reaper
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 315c9c6d1b5a767f7fdbe4bf715314a1c96cdbcf68c3e81d4639104aea5e6dbb |
|
MD5 | bcce1f39e80a706b2a163ea48bf937d9 |
|
BLAKE2b-256 | 3e31568f4c3f1fb57b7e499ccbfeaf4415243e39e4c4a279c8681858ad906c16 |
File details
Details for the file ec2_reaper-0.1.8-py2.py3-none-any.whl
.
File metadata
- Download URL: ec2_reaper-0.1.8-py2.py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7ad388c1a33f0628538e4df5ef202cf08e35153e18964b8c41c24a4bcf3d34b |
|
MD5 | 8ba3f4ad8142d7788dddc6d81a34a1b5 |
|
BLAKE2b-256 | 71b648cfd38ef0141e7feb275e57e43c9812c0fabd74660de05f5d0a6206a097 |