A command line tool for managing ECS task definitions.
tdtidy
can deregister and delete old task definitions.
The following AWS IAM permissions are required.
- ecs:DeleteTaskDefinitions
- ecs:DeregisterTaskDefinition
- ecs:DescribeTaskDefinition
- ecs:ListTaskDefinitions
$ brew install manabusakai/tap/tdtidy
$ go install github.com/manabusakai/tdtidy/cmd/tdtidy@latest
$ tdtidy -help
Usage of tdtidy:
-dry-run
Turn on dry-run. List the target task definitions.
-family-prefix string
Family name of task definitions. If specified, filter by family name.
-retention-period int
Retention period for task definitions. Unit is number of days. The default value is zero.
MIT License
Copyright (c) 2023 Manabu Sakai