// npmnpm install -g awsx// yarnyarn global add awsx
Add the following to your .bash_profile or .bashrc:
alias awsx="source _awsx"
Reload your profile by launching a new shell or running source ~/.bash_profile.
Upgrading
// npmnpm install -g awsx// yarnyarn global upgrade awsx --latest
Switching profiles
awsx or awsx [profile] or awsx [profile] [assume-role-profile]
If you don't specify a profile name (or an assume role profile name, if applicable) you will be prompted to choose from one of your existing profiles. If the selected profile has MFA enabled and you want to force a new MFA login use the --force-mfa flag.
NOTE: If you don't provide inputs you will be prompted for them.
Finding your MFA ARN
You can find your MFA ARN by logging into the AWS Console, clicking on your name in the menu and then clicking on "My Security Credentials". Under the "Multi-factor authentication (MFA)" section there should be an "Assigned MFA device" heading. The string below that that starts with arn:aws:iam:: is your MFA ARN.
If you don't have MFA set up on your AWS account you can enable it by following these instructions.