package
AWS CLI profile switcher with MFA support
npm install awsxGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
kyle-elyk-neo
kyle.elyk@neofinancial.com
neogibson
ezra.gibson@neofinancial.com
beraki
beraki.befekadu@neofinancial.com
vrochamaaia
vinicius.rocha@neofinancial.com
neobot1
neomcneoface@neofinancial.com
kennethcolina
kenneth.colina@neofinancial.com
neo-lior-ben-shahar
lior.benshahar@neofinancial.com
antonio.canabrava
antonio.canabrava@neofinancial.com
neo.eduardoyuidy
eduardo.satake@neofinancial.com
dennisbarthel
dennis.barthel@neofinancial.com
neo-engineering-b
engineering+b@neofinancial.com
iansu
ian@iansutherland.ca
// npm
npm install -g awsx
// yarn
yarn global add awsxAdd 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.
// npm
npm install -g awsx
// yarn
yarn global upgrade awsx --latestawsx 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.
awsx add-profile [profile] [access-key] [secret-key] [key-max-age] [default-region] [output-format] [mfa-arn] [mfa-expiry]NOTE: If you don't provide inputs you will be prompted for them.
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.
awsx enable-mfa [profile]awsx disable-mfa [profile]awsx remove-profile [profile]awsx current-profileawsx add-assume-role-profile [profile] [parent-profile] [role-arn] [default-region] [output-format]awsx remove-assume-role-profile [profile]awsx whoami or awsx statusawsx set-key-max-age [profile] [max-age]NOTE: use 0 days for no maximum age
If you'd like to contribute to awsx we recommend that you first open an issue to discuss your proposed change.
npm installnpm startnpm run buildTo clean the build directory run npm run clean
npm run testpackage.jsonCHANGELOG entrynpm pack --dry-run to see what will be publishednpm publish1.0.0 the tag and release name would be v1.0.0.This project was inspired by awsp
Estimated unpacked size across 26 packages.
1.9 MB
Includes dependencies.