I find myself constantly switching between AWS accounts at work.
Since we use SSO, this is a fairly tedious process without some scripted help.
I’ve been working on
awsp, an AWS profile switcher. I’ve only tested it on bash 5.0 on Mac OS, but it should work on
zsh / Linux too.
awsp will modify your prompt variable to clearly indicate the active profile.
Tab completion for profiles is available for
fzf and plain bash.