0.1.3 • Published 3 years ago
awssol v0.1.3
AWSSOL - AWS SSO Login Selector
Efficiently AWS SSO Login with CUI Selector.
This is based on awsp code.
Prereqs
Setup your profiles using the aws cli
aws configure --profile PROFILE_NAMEYou can also leave out the --profile PROFILE_NAME param to set your default credentials
Refer to this doc for more information https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
Setup
npm install -g awssolAdd the following to your .bashrc or .zshrc config
alias awsp="source _awssol"Usage
awssolShow your AWS Profile in your shell prompt
For better visibility into what your shell is set to it's helpful to configure your prompt to show the value of the env variable AWS_PROFILE.
Here's a sample of my zsh prompt config using oh-my-zsh themes
function aws_prof {
local profile="${AWS_PROFILE:=default}"
echo "%{$fg_bold[blue]%}aws:(%{$fg[yellow]%}${profile}%{$fg_bold[blue]%})%{$reset_color%} "
}PROMPT='OTHER_PROMPT_STUFF $(aws_prof)'