Giter VIP home page Giter VIP logo

aws-profile-select's People

Contributors

jprice-da15252 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

torreirow daverin

aws-profile-select's Issues

Needs an install script

Since this tool was created to make things easier, installation should be equally easy. While the installation is only a few commands, those two commands could be one.

Some requirements:

  • The installer should work on both MacOS and Ubuntu Linux
  • The installer should work in a bash environment, but zsh compatibility will be needed before zsh support (#3) is complete
  • The install script should detect if an alias for aps already exists in ~/.bash_profile, and only add the alias if it does not exist.
  • It should create a ${HOME}/bin or some other subdirectory in the users and place the script there.
  • It should detect or at least handle an upgrade scenario gracefully
    • To clarify, either detect and auto-upgrade or fail unless an upgrade argument is passed

Only works on systems with BSD sed like MacOS

Using APS on a system that uses GNU sed as its default, APS incorrectly parses the profile names, failing to strip out profile from the beginning of the name.

Example:
MacOS:

aws-superstar@hackstation-[~]: aps

------------- AWS Profile Select-O-Matic -------------
No profile set yet

Type the number of the profile you want to use from the list below, and press enter

-: Unset Profile
0: default
1: personal
2: company-main

Linux system with GNU sed:

aws-superstar@hackstation-[~]: aps

------------- AWS Profile Select-O-Matic -------------
No profile set yet

Type the number of the profile you want to use from the list below, and press enter

-: Unset Profile
0: default
1: profile personal
2: profile company-main

Feature request: Ability to select profiles from credentials file

In addition to the ~/.aws/config file, profiles are sometimes stored in the ~/.aws/credentials file, in a slightly different format.

This is most notably an issue for use with Serverless framework, which does not play well with the above-mentioned config file.

It would be good to also parse credentials, and handle any duplicate "default" profiles accordingly.

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.