https://github.com/glassechidna/ecs-run-task
https://github.com/glassechidna/ecs-run-task
aws cloudwatch-logs docker ec2-container-service golang
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/glassechidna/ecs-run-task
- Owner: glassechidna
- License: apache-2.0
- Created: 2017-04-11T22:05:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T10:25:06.000Z (about 8 years ago)
- Last Synced: 2024-07-16T04:22:59.839Z (about 1 year ago)
- Topics: aws, cloudwatch-logs, docker, ec2-container-service, golang
- Language: Go
- Size: 17.6 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `ecs-run-task`
[](https://travis-ci.org/glassechidna/ecs-run-task)
`ecs-run-task` is a cross-platform CLI tool to facilitate running ad-hoc tasks on the [AWS EC2 Container Service][aws-ecs] (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][run-task] [functionality][run-task-docs].
[aws-ecs]: https://aws.amazon.com/ecs/
[run-task]: http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html
[run-task-docs]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_run_task.html## Usage
```
$ 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 stringGlobal Flags:
--config string config file (default is $HOME/.ecs-run-task.yaml)
--profile string profile defined in ~/.aws/config
```