0.1.14 • Published 6 years ago

aws-rolling-service-restart v0.1.14

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

About

This script will help you do a rolling restart of a service, taking down a container at a time and waiting for a new one to come up, then proceeding with the next container and so on.

Module Usage

This exports to functions that will be of interest: restartService and getServicesInclusters.

restartService

This is an async function with signature:

const restartService = async (cluster, serviceName) => void

getServicesInclusters

This is a helper function that will give you a list of clusters with their service names. The function signature for this is:

const getServicesInclusters = async () => [ { clusterArn: 'someArn', serviceArns: [ 'serviceArns', 'serviceArns2' ] }, ]

CLI usage

Run npm install and then npm run make. This will generate the executable you can run under ./dist/app.dist.js

You only need to provide the service definition with --service and the cluster name with --cluster. Both of those can be found in the ECS console.

Example:

node ./dist/app.dist.js --cluster docker-cluster --service serviceName

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago