Skip to main content

AWS credential management tool

Project description

Contributors Forks Stargazers Issues MIT License


AWSX

A powerful command-line tool for quickly and easily switching between AWS credentials.

About The Project

awsx-cli is a command-line tool that helps you switch quickly and easily between Amazon Web Services (AWS) credentials. This tool is designed to streamline your tasks when you need to use multiple AWS credentials. You can use it to manage your AWS credentials, switch between them, and update Multi-Factor Authentication (MFA) sessions.

Key Features:

Manage and store your AWS credentials Switch between different AWS credentials Update Multi-Factor Authentication (MFA) sessions Easy and fast to use

Getting Started

Step 1: Installation

You can install awsx-cli using pip. If you don't have pip installed, you can follow the instructions here to install it.

pip install awsx-cli

Step 2: Basic Usage

Once awsx-cli is installed, you can start using it to manage your AWS credentials. Here are some basic commands to get you started:

  • To list your stored credentials:

      awsx
       aws01
       aws04
     * aws02
    

    or

     awsx -l
      aws01
      aws03
    * aws02
    
  • To switch to a different set of credentials:

     awsx aws02
    Credentials changed to 'aws02'
    
  • To add new credentials:

     awsx -a aws04
    Stored 'aws04' credentials succesfully
    

    or with the MFA ARN:

     awsx -a aws04 -m arn:aws:iam::123456789012:mfa/some-mfa-device
    Stored 'aws04' credentials succesfully
    
  • To both switch to a different set of credentials and update the MFA session:

     awsx aws02 -mfa your-mfa-code
    aws02 session is updated with MFA code
    
  • To update an MFA session:

     awsx -mfa your-mfa-code
    aws05 session is updated with MFA code
    
  • To remove credentials:

     awsx -r aws03
    Removed 'aws03' credentials successfully
    
  • To rotate credentials:

     awsx -c foo -mfa 123456
    Credentials rotated successfully
    
  • To get help:

     awsx --help
    usage: awsx [-h] [-a ADD] [-r REMOVE] [-l] [-p ADD_PROMPT] [-mfa UPDATE_MFA] [-c ROTATE_CREDENTIAL] [-m MFA_ARN] [change]
    
    positional arguments:
     change                Example: awsx foo , awsx bar
    
    optional arguments:
     -h, --help            show this help message and exit
     -a ADD, --add ADD     add your credentials to awsx
     -r REMOVE, --remove REMOVE
                           remove your credentials from awsx
     -l, --list            list your credentials from awsx
     -p ADD_PROMPT, --add-prompt ADD_PROMPT
                           you can create creds from prompt
     -mfa UPDATE_MFA, --update-mfa UPDATE_MFA
                           update your mfa session
     -c ROTATE_CREDENTIAL, --rotate-credential ROTATE_CREDENTIAL
                           rotate your credentials (create new and remove previous) Example: awsx -c foo -mfa 123456
     -m MFA_ARN, --mfa-arn MFA_ARN
                           add your MFA ARN along with the credentials to awsx
    

Now you're ready to start using awsx-cli to manage your AWS credentials efficiently!

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the APACHE-2.0 License. See LICENSE.txt for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awsx-cli-1.2.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

awsx_cli-1.2.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file awsx-cli-1.2.0.tar.gz.

File metadata

  • Download URL: awsx-cli-1.2.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for awsx-cli-1.2.0.tar.gz
Algorithm Hash digest
SHA256 b687f93128e279cb1ae8fdc7704b5fd190b58dc8f80643fee3d7349876ef75c7
MD5 2eaceb0398a8816fb1ff2490768c178f
BLAKE2b-256 dba5fb13c7025dff016d306b3308e8694f9d1f91901a36da2e1ea2ff381a9109

See more details on using hashes here.

File details

Details for the file awsx_cli-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: awsx_cli-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for awsx_cli-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30be24eb23c70ce9ea86cf410c50757ce4c0984d400239629682b029c6fe0fa3
MD5 696e94c631b0b3b9e8b0abd24c78a9f9
BLAKE2b-256 213576da36cf44c5c5cd3ea3a2fd067ee56a18ea5703730efc88022d8f9af830

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page