Switch between AWS Credential profiles.
Project description
AWS Credential Picker (aws-creds)
Makes it easier to use multiple AWS accounts when you don't have SSO available. You can easily save multiple profiles, and then log into them with an simple set of commands.
Installing
This utility is available in PyPi and can be installed by running:
pip install aws-creds
Usage
MacBook-Pro:aws-creds HammoTime$ aws-creds help
Usage: aws-creds [add|rm|ls|login|logout|version|status|help]
Commands
The following commands are available within the AWS Credential Picker.
add
: Add a new credential.rm
: Remove a credential.ls
: List all the saved credentials.login
: Login using a credential.logout
: Remove all of the files used by the aws-cli in ~/.aws.version
: Output version details.status
: Print details about the current session (account/user).help
: Print out Usage details.
How it Works
The AWS Credential Picker is quite simple in it's design. Instead of storing details in the credentials file - which can prove difficult to use with lots of profiles - we store them in a custom JSON file. When you login
, you're actually doing is creating the credentials
and the config
file in ~/.aws
. When you logout
, these files are being deleted.
The reason this was created is that some AWS Utilities and 3rd Party Tools REALLY do not like it if you have multiple profiles and do not treat environment variables correctly. By always having a single credential set, utilities will ALWAYS work.
This script also provides an update on how old your Access Key is and advises you when to rotate them.
Dependencies
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for aws_creds-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b76f7ed7673b978b1a985ce79281dc167f2fb648f7989acc9e09695739c1505 |
|
MD5 | 42e335d2c98490b5cfa271b897e1babd |
|
BLAKE2b-256 | 80307c2d428ef75907e260a32f835499ae32523d4c77ca32c45a70223871bc14 |