https://github.com/mizzy/tdrm
A command lint tool to clean up Amazon ECS task definitions
https://github.com/mizzy/tdrm
Last synced: over 1 year ago
JSON representation
A command lint tool to clean up Amazon ECS task definitions
- Host: GitHub
- URL: https://github.com/mizzy/tdrm
- Owner: mizzy
- License: mit
- Created: 2024-08-14T07:38:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-11T22:52:13.000Z (over 1 year ago)
- Last Synced: 2025-03-15T11:14:54.781Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 58.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tdrm
A command line tool to clean up Amazon ECS task definitions.
This tool works like this:
- Keep *n* active revisions.
- Inactivate revisions other than revisions to keep.
- Delete inactive revisions.
This tool is heavily inspired by [tdtidy](https://github.com/manabusakai/tdtidy) and [ecrm](https://github.com/fujiwara/ecrm).
## Usage
```
NAME:
tdrm - A command line tool to manage AWS ECS task definitions
USAGE:
tdrm [global options] command [command options]
VERSION:
current
COMMANDS:
delete Delete task definitions.
plan List task definitions to delete.
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--config FILE, -c FILE Load configuration from FILE (default: "tdrm.yaml") [$TDRM_CONFIG]
--format value plan output format (table, json) (default: "table") [$TDRM_FORMAT]
--help, -h show help
--version, -v print the version
```
## Configurations
Configuration file is YAML format.The default file name is `tdrm.yaml`.
```yaml
task_definitions:
- family_prefix: metabase
keep_count: 10
- family_prefix: foo*
keep_count: 20
- family_prefix: bar*
keep_count: 30
```
## Author
Copyright (c) 2024 Gosuke Miyashita
## LICENSE
MIT