jprice-da15252 / aws-profile-select Goto Github PK
View Code? Open in Web Editor NEWA painless way to select an AWS profile
License: GNU General Public License v3.0
A painless way to select an AWS profile
License: GNU General Public License v3.0
See here: https://www.theverge.com/2019/6/4/18651872/apple-macos-catalina-zsh-bash-shell-replacement-features
Apple has changed the default shell for Catalina from bash to zsh. Based on that it would be useful if this tool could support zsh out of the box to help prevent errors for people using it with Catalina.
Thanks!
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:
aps
already exists in ~/.bash_profile, and only add the alias if it does not exist.${HOME}/bin
or some other subdirectory in the users and place the script there.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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.