<commit_before># aws-amicleaner
Cleanup your old unused ami and related snapshots

[![Circle CI](https://circleci.com/gh/bonclay7/aws-amicleaner/tree/master.svg?style=svg)](https://circleci.com/gh/bonclay7/aws-amicleaner/tree/master)

## Prerequisites

## How does it work ?

## Tests

## Contributing<commit_msg>readme: coverage and description<commit_after># aws-amicleaner
Cleanup your old unused ami and related snapshots

[![Circle CI](https://circleci.com/gh/bonclay7/aws-amicleaner/tree/master.svg?style=svg)](https://circleci.com/gh/bonclay7/aws-amicleaner/tree/master)
[![codecov.io](https://codecov.io/github/bonclay7/aws-amicleaner/coverage.svg?branch=master)](https://codecov.io/github/bonclay7/aws-amicleaner?branch=master)

## Description

This tools permits to clean your custom [Amazon Machine Images (AMI)] (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html) and related [EBS Snapshots] (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html).

You can either run in `fetch and clean` mode where the tool will retrieve all your private __AMIs__ and EC2 instances, exclude AMIs being holded by your EC2 instances (it can be useful if you use autoscaling, and so on ...). It applies a filter based on  their __names__ or __tags__ and a number of __previous AMIs__ you want to keep.

It can simply remove AMIs with a list of provided ids !
{'fraction_non_alphanumeric': 0.11820159535895576, 'fraction_numerical': 0.007251631617113851, 'mean_word_length': 5.133333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '277088', 'n_tokens_mistral': 470, 'n_tokens_neox': 459, 'n_words': 123}