Skip to content

Instantly share code, notes, and snippets.

@yano3nora
Last active January 31, 2025 06:36
Show Gist options
  • Save yano3nora/895b0e1e263f7b51045a35b7d2f327c7 to your computer and use it in GitHub Desktop.
Save yano3nora/895b0e1e263f7b51045a35b7d2f327c7 to your computer and use it in GitHub Desktop.
awsp - AWS Profile Switcher

Overview

  • aws profile 切り替えどうしよう問題
  • https://github.com/johnnyopao/awsp は更新されてない & crash するので ng
  • alias x fzf で直接 $AWS_PROFILE 書き換えが一旦よさそう

https://zenn.dev/ryu022304/scraps/1a702c7a1edfa0

# https://github.com/junegunn/fzf?tab=readme-ov-file#using-homebrew
$ brew install fzf
$ exec $SHELL -l

$ echo "alias awsp='export AWS_PROFILE=$(aws configure list-profiles | fzf)'" >> ~/.zshrc
$ exec $SHELL -l

$ awsp
#   default
# ❯ sandbox

$ echo $AWS_PROFILE
# sandbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment