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.
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 rawscliThis will display a list of available commands:
raws -h
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
Here are a few examples of how to use the AWS Profile Manager:
Show all available profiles:
raws list or
raws lsShow details of the personal profile:
raws show personalAdd a new profile from clipboard (copied from AWS SSO page), set as default, rename to personal:
raws add cb --setdefault --rename_to=personalRename profile busieness_13123 to work:
raws rename busieness_13123 workSet personal profile as default:
raws setdef personalBackup current credentials file:
raws backupRestore from the latest backup:
raws restore --latestList all profiles in a backup file located in /home/user/backup/creds.bkp
raws --creds_file=/home/user/backup/creds.bkp lsIf you find a bug or have an idea for a new feature, feel free to create an issue or submit a pull request.
RAWS is released under the MIT License.