Metadata-Version: 2.1
Name: resoto-plugin-cleanup-expired
Version: 3.0.0a2
Summary: Resoto Expired Resource Cleanup Plugin
License: Apache 2.0
Keywords: cloud security
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Unix
Classifier: Environment :: Console
Classifier: Natural Language :: English
Classifier: Topic :: Security
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown

# resoto-plugin-cleanup-expired
Resoto plugin for cleanup of expired resources

This plugin looks for resources with the tags `expiration` or `resoto:expires` and flags them for cleanup if they are expired.

## Tag format

| Tag              | Format                      | Description                                          |
| ---------------- | --------------------------- | ---------------------------------------------------- |
| `resoto:expires` | `2019-09-05T10:40:11+00:00` | ISO 8601 Timestamp                                   |
| `expiration`     | `24h`                       | A timedelta relative to the resource's creation time |

Example of valid units for the `expiration` tag:

```
weeks
days
hours
minutes
```

Each of them can be abbreviated down to one letter. E.g. `7d`, `24h`, `60m`, etc. A space in between the numeric and the unit is optional, meaning `7d` and `7 days` are equivalent.

## Usage

In `resh` execute

```
> config edit resoto.worker
```

and find the following section

```
plugin_cleanup_expired:
  # Enable plugin?
  enabled: false
```
