A simple tool to manage your AWS credentials
Project description
RAWS
RAWS is a simple AWS Profile Manager with a command-line interface that helps you easily manipulate AWS profiles on your local machine.
RAWS will lookup location of your AWS credentials file through environment variable AWS_CREDS_FILE
. If the variable is not set, it will default to ~/.aws/credentials
. You can also override the file location by specifing --creds_file
argument.
Installation
You can install the raws by cloning the repository and running pip install:
git clone git@github.com:andzhi4/raws
cd raws && pip install .
Using PyPi:
pip install rawscli
This will display a list of available commands:
raws -h
Available commands
add
: Add a new AWS profile.delete
: Delete an existing AWS profile.list
: List all available AWS profiles.show
: Show detailed information on specified profilesetdefault
: Make specified profile defaultrename
: Rename a profilebackup
: backup credentials file (optionally provide location)restore
: restore from a location or from latest backupversion
: show current version and exit
Examples
Here are a few examples of how to use the AWS Profile Manager:
Show all available profiles:
raws list
or
raws ls
Show details of the personal
profile:
raws show personal
Add a new profile from clipboard (copied from AWS SSO page), set as default, rename to personal
:
raws add cb --setdefault --rename_to=personal
Rename profile busieness_13123
to work
:
raws rename busieness_13123 work
Set personal
profile as default:
raws setdef personal
Backup current credentials file:
raws backup
Restore from the latest backup:
raws restore --latest
List all profiles in a backup file located in /home/user/backup/creds.bkp
raws --creds_file=/home/user/backup/creds.bkp ls
Contributing
If you find a bug or have an idea for a new feature, feel free to create an issue or submit a pull request.
License
RAWS is released under the MIT License.
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
Built Distribution
File details
Details for the file rawscli-0.9.7.tar.gz
.
File metadata
- Download URL: rawscli-0.9.7.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51f90abd1703145ad52305ecaaa602be6971de19a0d2f2d001124e5bdea13c51 |
|
MD5 | 4c6e2c5e4045857abe3caf867b482a1c |
|
BLAKE2b-256 | 0bb2d9d005805c51bfd9c05fea3684ba83a8aadc55f488e2a03d02fefde98a46 |
File details
Details for the file rawscli-0.9.7-py2.py3-none-any.whl
.
File metadata
- Download URL: rawscli-0.9.7-py2.py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e86c7ab3232c765a9a404ea35fdae76afa1edecbcfbabc1165713b89e18842f |
|
MD5 | c3860c80206cf97aa2bf6c8aa1c99478 |
|
BLAKE2b-256 | 1d7aae3ba725bd97396161db39d9176c7444ffe98f3b674423e65754f1f18d86 |