Skip to content
Snippets Groups Projects
Select Git revision
  • master default
  • v0.4.3
  • v0.4.2
  • v0.4.1
  • v0.3.1
  • 0.2.1
  • 0.2.0
  • v0.2.0
8 results

eb-prune

  • Clone with SSH
  • Clone with HTTPS
  • eb-prune

    https://travis-ci.org/adarnimrod/eb-prune.svg?branch=master

    A CLI tool to prune old versions of Elastic Beanstalk.

    Installation

    pip install eb-prune

    Usage

    To keep the last 100 versions available, simply run eb-prune 100. The tool relies on the usual AWS CLI configuration as described here, specifically on access key id, secret access key and region.

    $ eb-prune --help
    usage: eb-prune [-h] [-d] versions_to_keep
    
    positional arguments:
      versions_to_keep  The number of versions to keep.
    
      optional arguments:
        -h, --help        show this help message and exit
        -d, --dry-run     Dry run, do not delete versions.

    License

    This software is licnesed under the MIT licese (see the LICENSE.txt file).

    Testing

    Tests require Python 2.7, Python 3.2 or later and Tox and are run by running tox. Also, Travis CI is used to test on multiple Python versions for every push.

    Release

    Releases require Python 2.7 or Python 3.2 or later and Tox. To release a new version bump the version in the VERSION file and run tox -e release.

    Author

    Nimrod Adar, contact me or visit my website. Patches are welcome via git send-email. The repository is located at: https://www.shore.co.il/git/.

    TODO