Code Monkey home page Code Monkey logo

raph's Introduction

Installation

cargo install will install a binary, _raph_bin, and a script, _raph. Note the installation is HARD CODED to install the _raph executor script to $HOME/.cargo/bin, so if you are using an alternate cargo install path, things will not work.

After installation, add this line to your shell .profile or .rc file:

alias raph="source _raph"

Usage

Usage: raph [OPTIONS] [profile] [command]...

Arguments:

  • [profile] Specifies the AWS profile to use
  • [command]... An 'aws CLI' command to execute with the specified AWS profile, without affecting the current shell's environment

Options:

  • -n, --no-auto-prefix Disables automatic prefixing of the 'aws' command

Providing no arguments will activate the interactive profile switcher.

Providing the profile argument will skip interactive switching and perform the switch.

Providing the profile argument and a command will run this command once-off using the provided profile argument. This does NOT change the shell environment. If providing a command which does not start with 'aws', it will be automatically prefixed with 'aws'. This can be disabled with the -n flag to run scripts.

Examples

raph profileA - Uninteractively switch the shell environment to use profileA

raph profileB aws sso login - run aws sso login using profileB, leaving the AWS_PROFILE environment variable intact.

raph profileB sso login - same as above. It is not required to prefix the command with 'aws'.

raph profileB ~/my_script.sh --opt1 foo --opt2 bar extraopts - will run ~/my_script.sh --opt1 foo --opt2 bar extraopts verbatim, with AWS_PROFILE=profileB environment variable.

raph's People

Contributors

n-hass avatar

Watchers

 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.