Interactively switch between AWS Profiles
curl -O https://raw.githubusercontent.com/bharathalleni/awsw/main/_awswitch
curl -O https://raw.githubusercontent.com/bharathalleni/awsw/main/_awsw
chmod +x ./_awsw*
sudo mv ./_awsw* /usr/local/bin/
Add the following line to your .bashrc
or .zshrc
file
alias awsw="source _awsw" && source _awsw reset
or
echo 'alias awsw="source _awsw" && source _awsw reset' >> ~/.bashrc
awsw