Skip to main content

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.

Metadata

Release files for awsx-cli 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for awsx-cli 1.2.0
File Size Uploaded
awsx-cli-1.2.0.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for awsx-cli 1.2.0
File Interpreter ABI Platform
awsx_cli-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / awsx-cli-1.2.0.tar.gz

Download URL awsx-cli-1.2.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b687f93128e279cb1ae8fdc7704b5fd190b58dc8f80643fee3d7349876ef75c7
BLAKE2b-256 checksum
How to use checksums
dba5fb13c7025dff016d306b3308e8694f9d1f91901a36da2e1ea2ff381a9109
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / awsx_cli-1.2.0-py3-none-any.whl

Download URL awsx_cli-1.2.0-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30be24eb23c70ce9ea86cf410c50757ce4c0984d400239629682b029c6fe0fa3
BLAKE2b-256 checksum
How to use checksums
213576da36cf44c5c5cd3ea3a2fd067ee56a18ea5703730efc88022d8f9af830
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page