ecs-run-task
is a cross-platform CLI tool to facilitate running ad-hoc tasks on the AWS EC2 Container Service (ECS).
Occasionally the need arises to run tasks in our infrastructure that are not long-running services. Examples include database migrations, batch jobs, ad-hoc database queries and general spelunking. To enable this use case, ECS exposes the RunTask functionality.
$ ecs-run-task run --help
Run a pre-defined ECS Task on a given cluster with possible
command override.
Usage:
ecs-run-task run [flags]
Flags:
--cluster string
--command string
--container string
--task-definition string
Global Flags:
--config string config file (default is $HOME/.ecs-run-task.yaml)
--profile string profile defined in ~/.aws/config