0.3.0 • Published 7 years ago

aws-rolling-restarter v0.3.0

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

RollingRestarter

progressively restart ec2 instances under any OpsWorks layer


Description

Progressively restarts ec2 instances under any Opsworks layer, x machines at a time.


Installation

npm install aws-rolling-restarter

Usage

var restarter = require("aws-rolling-restarter");

restarter.init({
  accessKeyId: "Your accessKeyId",
  secretAccessKey: "Your secretAccessKey",
  region: "region where your machines are hosted",
  layerId: "the layer under which the ec2 instances are",
  groupSize: 2, // the amount of ec2 instances you want to restart at a time.
  retryOnSetupFailed: true, // whether or not to attempt stopping and starting again if machine ends up with setup_failed status. Default: false
});

restarter.start();

Events

  • you can add event listeners using the on function like so:
restarter.on("done", () => {
  console.log("done restarting");
});
  • Available events:
    • "done"
0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago