Giter Club home page Giter Club logo

aws-remote's Introduction

AWS Remote

AWS Remote is a command line tool to view and interact with AWS instances via SSM

Depends On:

What Can It Do?

aws-remote will list all your EC2 instances in the specified account/region, and display helpful information like state and SSM management status. aws-remote is also a wrapper for the AWS CLI that makes starting remote sessions and port-forwarding easier. Remote sessions and port-forwarding can be started using the EC2 Instance ID or the friendly name.

Examples:

$ aws-remote --help
Usage: aws-remote [OPTIONS] COMMAND [ARGS]...

  AWS Remote is a simple, command line tool to view and interact with AWS
  instances via SSM. Requires the AWS CLI and Session Manager Plugin to be
  installed locally.

Options:
  --profile TEXT  Specify AWS profile
  --region TEXT   Specify AWS region
  --help          Show this message and exit.

Commands:
  list          List EC2 instances and SSM management status
  port-forward  Start SSM port forward to instance id/name
  session       Start SSM session with instance id/name

$ aws-remote list
ID                     AZ            Type         State      SSM     Name         
i-01234567890987654    us-east-1a    r4.xlarge    running    true    instance1-example.domain.com
i-02345678909876543    us-east-1b    t3.micro     running    false   instance2-example.domain.com       
i-03456789098765432    us-east-1c    t3.medium    running    true    instance3-example.domain.com

$ aws-remote --profile my_profile session i-02345678909876543

$ aws-remote --profile my_profile session instance2-example.domain.com

$ aws-remote --profile my_profile --region us-west-2 port-forward 8080 80 instance2-example.domain.com

Installation Steps:

  1. Verify Python3.6 or later is installed: python --version or python3 --version

  2. Verify AWS CLI version 1.16.12 or later is installed: aws --version

  3. Verify Session Manager plugin is installed: session-manager-plugin

  4. Clone repo to your computer: git clone https://github.com/dkuchenski/aws-remote.git

  5. Install script packages: pip install -r aws-remote/requirements.txt

  6. Verify script works: python3 aws-remote/aws-remote --help

  7. If desired, add alias to bash_profile and then restart terminal:

vi ~/.bash_profile
alias aws-remote='python3 ~/your-script-directory/aws-remote/aws-remote'

aws-remote's People

Contributors

dkuchenski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.