ec2-ssh

0.0.3 • Public • Published

ec2-ssh

Build Status npm version

Console tool based on NodeJS that simplifies connecting to AWS EC2 instances.

Installation

  1. Ensure AWS API credentials are configured (e.g. by installing AWS CLI and running aws configure)
  2. npm -g install ec2-ssh
  3. During installation, you can choose how to install the auto-suggestion based on node-tabtab

Features

  • Tab completion lists your current running AWS instances
  • EC2 name-tag is displayed
  • User and path to SSH-Key is cached for each instance
  • support for AWS roles
  • ...

Configuration

You can change the supported AWS regions and add additional accounts via AWS roles (see docs) that will be retrieved by the script. At the moment you have to edit the config.json manually. It is located in the same installation directory, just run which ec2-ssh to find the path.

Example config.json:

{
  "regions": [
    "eu-central-1",
    "eu-west-1
  ],
  "roles": [
    "arn:aws:iam::1234567:role/admin"
  ]
}

Contribute

Feel free to create pull or feature requests for this project.

Readme

Keywords

Package Sidebar

Install

npm i ec2-ssh

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • philsch