New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aws-rolling-restarter

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-rolling-restarter - npm Package Compare versions

Comparing version 0.1.4 to 0.2.0

.npmignore

2

package.json
{
"name": "aws-rolling-restarter",
"version": "0.1.4",
"version": "0.2.0",
"description": "Progressively restarts ec2 instances under any Opsworks layer, x machines at a time",

@@ -5,0 +5,0 @@ "main": "RollingRestarter.js",

@@ -25,8 +25,8 @@ RollingRestarter

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.
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
});

@@ -33,0 +33,0 @@

@@ -98,8 +98,15 @@ var AWS = require("aws-sdk");

console.log("did the weird thing. attempting to start " + machine.name + " again.");
startMachine(machine);
startMachine(machine, machineNum);
}
else if (data["Instances"[0].status] == "setup failed") {
else if (data["Instances"][0].Status == "setup_failed") {
clearInterval(checkIfOnline);
console.log("( " + machine.name + " ) setup failed. stopping then starting again." );
stopMachine(machine);
console.log("( " + machine.name + " ) setup failed." );
if (global.retryOnSetupFailed) {
console.log("( " + machine.name + " ) retrying" );
stopMachine(machine, machineNum);
}
else {
global.old_machines.total -= 1;
}
}

@@ -160,5 +167,6 @@ });

global.groupSize = config.groupSize;
global.retryOnSetupFailed: config.retryOnSetupFailed || false
},
start: start
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc