npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

awsx

v1.4.2

Published

AWS CLI profile switcher with MFA support

Downloads

86

Maintainers

divanshudivanshumaiko.trindademaiko.trindadeneo-ahmed-jamaneo-ahmed-jamaneo-eason-changneo-eason-changmganzneomganzneonozomu.koshiraenozomu.koshiraeneo-colin-hanlon-dearmanneo-colin-hanlon-dearmanneo-edimar-cardosoneo-edimar-cardosoneo-chris-nobleneo-chris-nobleneo-ife-ojikutuneo-ife-ojikutuneo-will-parkerneo-will-parkerneo-paula-grangeironeo-paula-grangeirogaulfordgaulforddanielafekhume-neodanielafekhume-neojashish_mjashish_mneo-lior-ben-shaharneo-lior-ben-shaharneo-diego-nunesneo-diego-nunestim-neo2tim-neo2antonio.canabravaantonio.canabravaneo.eduardoyuidyneo.eduardoyuidyneo-oleksandr-yanchenkoneo-oleksandr-yanchenkoneo-barry-lineo-barry-lidesmond-maloneydesmond-maloneyneo-elgiz-abbasovneo-elgiz-abbasovnikita-syrotenkonikita-syrotenkoneo-bclausineo-bclausidustinn1235dustinn1235neo-peter-spanglerneo-peter-spanglerneo-rivan-motaneo-rivan-motaneo-daniel-brennanneo-daniel-brennanneo-matt-feliceneo-matt-feliceneo-rameez-virjineo-rameez-virjimatt-armstrongmatt-armstrongrajanatneorajanatneoneo-zhaoquan-zhangneo-zhaoquan-zhangalejandrogarbialejandrogarbironellgarciaronellgarciaedward.nazarovedward.nazarovannakumovaannakumovaleah-is-offlineleah-is-offlineneo-shruti-goyalneo-shruti-goyalfelipe.minettofelipe.minettoneo-kevin-hillardneo-kevin-hillardtunde-neotunde-neoneo-shubham-patelneo-shubham-patelbiancaballenabiancaballenajadondubyjadondubymsalamamsalamaishmeet.rayatishmeet.rayatneo-bryce-brandfordneo-bryce-brandfordneo-ricardo-gomezneo-ricardo-gomezneobot1neobot1neo-dakota-chattneo-dakota-chattlucasjohannsonlucasjohannsonneo-travis-friesenneo-travis-friesenmike.himbeault-neomike.himbeault-neoraul.ribeiroraul.ribeiroanhtranneoanhtranneolucachameckilucachameckiamievishwaamievishwaneo-matias-wengielneo-matias-wengielneo-ahmed-seifelnasrneo-ahmed-seifelnasrrhullyamrhullyamdas-bossdas-bosskennethcolinakennethcolinamarvindeleonmarvindeleonneo-miguel-castroneo-miguel-castroneo-dione-silvaneo-dione-silvahanna.tkachenkohanna.tkachenkonico-connornico-connorroman.mnatsakanianroman.mnatsakanianriley-pickerlriley-pickerlbriancruzbriancruzamjad-mahfoud-neoamjad-mahfoud-neoneoauderesantosneoauderesantosnitin.madannitin.madanmohpormohporpunit.patelpunit.patelbrayden_sc_neobrayden_sc_neoanna_benemanskaiaanna_benemanskaiahrishikeshkalehrishikeshkalekyle-elyk-neokyle-elyk-neomichelepipernimichelepipernineo-youre_penaneo-youre_penaneo-michal-kowalneo-michal-kowalniconeimanniconeimanneodiegobeltranneodiegobeltranstburkestburkemarcelo.matosmarcelo.matosmatheusicaromatheusicaromaiahneomaiahneorjberryrjberrymohamedalhammoudmohamedalhammoudneo-hasanpreetsinghneo-hasanpreetsinghjcavalcantijcavalcantistephanie-wang-neostephanie-wang-neokaelanneofinancialkaelanneofinancialvinicius-barcelosvinicius-barcelosbenx-neobenx-neomhowitt-neomhowitt-neomalcolm-neomalcolm-neoneo-seol-kimneo-seol-kimbrentcambrentcamteena_teena_deankimdeankimherculesjrherculesjrmatthew.belfordmatthew.belfordrishbarrishbarneo-baonguyenneo-baonguyencaio.andradecaio.andradeluan.leluan.ledennisbartheldennisbarthellavanya.mohanlavanya.mohandhruvangdhruvangneo-rodrigoravalneo-rodrigoravaljoeljwoodjoeljwoodnahom-neonahom-neostefan.amyottestefan.amyottetimothy.couch.neofinancialtimothy.couch.neofinancialscottkayeneoscottkayeneoomolaraomolaraar-iesar-iescjnewmancjnewmanvidalrmrzvidalrmrzrnetto46rnetto46iansuiansudarrenpicard25darrenpicard25maxgoomaxgoostschmaltzstschmaltzusernamesebusernameseberic.zaporzan.neoeric.zaporzan.neolucasparreiralucasparreiralewishorwoodlewishorwoodcraigsiemenscraigsiemensdiegobmydiegobmyjoelsimpsonjoelsimpsonjooh-leejooh-leekasrababaeikasrababaeimattlabarremattlabarreu2v22u2v22johnclendvoyjohnclendvoydemaestrodemaestrosudeep.sidhusudeep.sidhudaylan.lawdaylan.lawneo-stephenneo-stephenneogibsonneogibsonberakiberakivrochamaaiavrochamaaiad_fenniakd_fenniakadamtranquillaadamtranquillanehasingh1801nehasingh1801lucaslongarinilucaslongarinierozonachierozonachifaddoulfaddoulnpoltz-neonpoltz-neo

Keywords

Readme

awsx

Build status coverage codecov TypeScript 3.7.5

AWS CLI profile switcher with MFA support

Usage

Installation

// npm
npm install -g awsx

// yarn
yarn 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

// npm
npm install -g awsx

// yarn
yarn 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.

Adding a new profile

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.

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.

Adding MFA support to an existing profile

awsx enable-mfa [profile]

Removing MFA support from an existing profile

awsx disable-mfa [profile]

Removing a profile

awsx remove-profile [profile]

Get current profile

awsx current-profile

Adding an assume role profile

awsx add-assume-role-profile [profile] [parent-profile] [role-arn] [default-region] [output-format]

Removing an assume role profile

awsx remove-assume-role-profile [profile]

Show what AWS account and identity you're using

awsx whoami or awsx status

Set access key maximum age

awsx set-key-max-age [profile] [max-age]

NOTE: use 0 days for no maximum age

Contributing

If you'd like to contribute to awsx we recommend that you first open an issue to discuss your proposed change.

  1. Fork this repo
  2. Clone the forked repo
  3. Install dependencies: npm install

Development

npm start

Building

npm run build

To clean the build directory run npm run clean

Testing

npm run test

Publishing

  1. Update the version in package.json
  2. Add a CHANGELOG entry
  3. Commit your changes
  4. Run npm pack --dry-run to see what will be published
  5. Run npm publish
  6. Create a release on GitHub. Use the version as the tag and release name. For example for version 1.0.0 the tag and release name would be v1.0.0.

Credits

This project was inspired by awsp