Code Monkey home page Code Monkey logo

ecs-run-task's Introduction

ecs-run-task

Build Status

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.

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 string

Global Flags:
      --config string    config file (default is $HOME/.ecs-run-task.yaml)
      --profile string   profile defined in ~/.aws/config

ecs-run-task's People

Contributors

aidansteele avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ernoaapa syllogy

ecs-run-task's Issues

Error handling

ECS can report back when the agent cannot run an image, e.g. image doesn't exist, couldn't find an instance and so on. We should check and report this back to the user.

Rate limit to fix ThrottlingExceptions

I'm getting ThrottlingException errors when running this on an EC2 instance. I'm not sure which API is being throttled. I think it might be when polling the logs.

> ecs-run-task run --cluster dev --task-definition bash --container bash --command "ping -c 5 8.8.8.8"
2018/03/30 19:48:58 started task id: 943d5ef8-f54c-4ba3-9daf-4ddd6a1cf198
2018/03/30 19:49:07 ThrottlingException: Rate exceeded
	status code: 400, request id: 685a2c78-3453-11e8-a94b-ef45402e4569
panic: ThrottlingException: Rate exceeded
	status code: 400, request id: 685a2c78-3453-11e8-a94b-ef45402e4569

Should we implement some form of exponential backoff as described here: https://aws.amazon.com/blogs/ses/how-to-handle-a-throttling-maximum-sending-rate-exceeded-error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.