Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ec2-ssh-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ec2-ssh-cli - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

20

index.js

@@ -22,6 +22,20 @@ #!/usr/bin/env node

let choices = items.map((instance) => {
let { InstanceId, PrivateIpAddress } = instance
return `Instance ID: ${InstanceId} IP: ${PrivateIpAddress}`;
});
//console.log(JSON.stringify(instance, null, 4));
let { InstanceId, PrivateIpAddress, State, Tags } = instance
let version, cluster;
try {
version = Tags.find(tag => tag.Key === "version").Value;
} catch (error) {
cluster = "Unknown";
}
try {
instanceName = Tags.find(tag => tag.Key === "Name").Value;
} catch (error) {
instanceName = "Unknown";
}
return `${instanceName} ${version} ${InstanceId} ${State.Name} ${PrivateIpAddress}`;
}).sort();
// allow the choice to quit

@@ -28,0 +42,0 @@ choices.push(QUIT);

2

package.json
{
"name": "ec2-ssh-cli",
"version": "0.0.1",
"version": "0.0.2",
"description": "command line interface for sshing into ec2 instances",

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

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