A shell script that helps switch AWS profiles for AWS command line tools. Supports using MFA in profiles.
git clone https://github.com/bqbn/aws_profile.git
-
Source the script on the command line session or put the source command in .bashrc or .bash_profile file.
source aws_profile.sh
-
Run the aws_profile command to switch among AWS profiles.
aws_profile <profile> [mfa_token]