@bugcrowd/ecs-commander
v0.5.3
Published
Manages ECS deploys. Updates an ECS Service, watches for failed tasks and rollbacks if failure threashold is reached.
Downloads
166
Keywords
Readme
ECS Commander
Assists with updating an ECS Service with a new Docker Image. It will monitor the new deployment and rollback to the previous Task Definition if more tasks than the configure threshold fail.
NOTE: We have moved the package under our bugcrowd
NPM organization - this will be the only package location maintained going forward.
Running
$ bin/ecs-commander --help
Options:
--help Show help [boolean]
--version Show version number [boolean]
--cluster-arn [required]
--service-name [required]
--image [required]
--container-name [required]
--failure-threshold [default: ".25"]
container-name
is a single string that may include several container names, comma-separated. The downstream tools can support multiple containers that can be updated in the task definition, unfortunately only if all of them use the same image. Using the yargsarray
argument type unfortunately doesn't work so well here, as upstream scripts typically wrap this argument in double quotes, which prevents yargs from recognising the values as separate entries in the array.