dyson

dyson is a command-line tool that helps you delete unused ECR images from your registry. It provides several commands to manage the deletion process.

Installation

To use dyson, you need to have Rust and Cargo installed. If you don't have them installed, you can follow the official Rust installation guide at https://www.rust-lang.org/tools/install.

Once you have Rust and Cargo installed, you can install dyson by running the following command:

bash cargo install dyson

Or, you can download the latest release from the GitHub releases page.

Usage

bash dyson [OPTIONS] <COMMAND>

Commands:

Options:

Configuration

Dyson requires a configuration file that specifies the rules for identifying unused images. By default, the configuration file is named dyson.yaml.

You can customize the configuration file to fit your specific needs. The configuration file uses YAML format and should contain the following information:

```yaml registry: name: my-registry profilename: profile1 excludes: - exclude/* filters: - pattern: '*' daysafter: 30 ignoretagpatterns: - latest

scans: - name: scan-target profile_name: profile2

notification: slack: webhook_url: https://hooks.slack.com/services/xxx/yyy/zzz username: dyson-bot channel: random ```

Registry Configuration

The registry section defines the settings for your ECR registry:

Scans Configuration

In the scan process, dyson will scan the accounts for images that are used by

The scans section defines the scans target accounts.

You can define multiple scans in the scans section if needed.

Notifier Configuration

Dyson provide a simple notification mechanism to notify the result. Currently, only Slack is supported.