プロジェクト
GitHubで見る 

johnnyopao/awsp
概要
AWSプロファイルを簡単に切り替え
その他のプロジェクト計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルAWSP - AWS Profile Switcher
Easily switch between AWS Profiles

Prereqs
Setup your profiles using the aws cli
aws configure --profile PROFILE_NAME
You 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 awsp
Add the following to your .bashrc or .zshrc config
alias awsp="source _awsp"
Usage
awsp
Show 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)'
関連プロジェクトを探す
読み込み中…