Code Monkey home page Code Monkey logo

rsm's Introduction

rsm

Rust Session Manager is a CLI tool to copy an AWS ssm connection string to the clipboard for a given list of instances via the AWS SDK for Rust.

Hacked together while understanding the Rust AWS SDK: improvement pr's and code reviews welcomed!

rsm-example

dependencies

cargo - Note - The Rust AWS SDK is pretty dep-heavy right now. First builds will be slow, incremental builds should be significantly faster.

cursive, the TUI library used requires ncurses. Please install: https://github.com/gyscos/cursive/wiki/Install-ncurses

build options

make build. Produces a dev build. Output binary is at ./target/debug/rsm.

make run will build + run above binary.

make release will do a clean release build, and produce an output binary at .bin/rsm. Sizes are around 9mb.

make clean simply runs cargo clean.

usage

Requires a valid AWS credentials or config file.

./rsm should display all instances for current profile (default).

  • -r region sets region. Must be a valid AWS region.
  • -p profile sets profile. Note that a region must be specified as we don't handle defaulting. The AWS SDK is complicated!
  • -v sets verbose flag and is currently unused.

Optional functions write_json() and read_json() are exported for your convenience but not called. Useful for troubleshooting.

theme

cursive theme file style.toml is loaded at compile time.

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.