Skip to content

Instantly share code, notes, and snippets.

@chaspy
Last active June 29, 2018 14:54
Show Gist options
  • Save chaspy/d1737296a3554995886d0eb1f979ed39 to your computer and use it in GitHub Desktop.
Save chaspy/d1737296a3554995886d0eb1f979ed39 to your computer and use it in GitHub Desktop.
AWS CLIでプロファイルを切り替える ref: https://qiita.com/chaspy/items/7bf3bbb2060c887c54a8
awsc () {
export AWS_DEFAULT_PROFILE=$(grep -oE "(\[).+(\])" ~/.aws/credentials | tr -d [] | peco)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment